Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:71135 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 75921 invoked from network); 15 Jan 2014 08:56:39 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 15 Jan 2014 08:56:39 -0000 Authentication-Results: pb1.pair.com smtp.mail=dmitry@zend.com; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=dmitry@zend.com; sender-id=unknown Received-SPF: error (pb1.pair.com: domain zend.com from 74.125.82.41 cause and error) X-PHP-List-Original-Sender: dmitry@zend.com X-Host-Fingerprint: 74.125.82.41 mail-wg0-f41.google.com Received: from [74.125.82.41] ([74.125.82.41:65198] helo=mail-wg0-f41.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 92/03-52301-54D46D25 for ; Wed, 15 Jan 2014 03:56:38 -0500 Received: by mail-wg0-f41.google.com with SMTP id n12so4856361wgh.0 for ; Wed, 15 Jan 2014 00:56:35 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=MTTCwA5TpLHrFl6AT65xObxuOjRNqJhVXxnwSvZIrXo=; b=E54E9Kg/oKizu20xaXQ1nuAaSxQi2z7j7dmN7/I18cCFwn3Z4V0Rd6ykkH3mrmP/1E SDfneWW1BCBLm2IuMYgH/bZ2evb8y7U843x3ZNDOXkijYXgdsOgn/9+MIdi5QKFnvNc1 gCYNewLqxmD/NNQ0O4xYKih9BcRtDjXY44fuuZMBcbc5L02FW+I0yGwOvtwbMMLFs+zh nZ9/PSV+fKjgbrlhlNXO7KYXgMDBq4EVXt6Ra2LLYGz66BMGO5myqIL+84TL+502nGMW lDlA1s9MmCgtlI+z+PtNiGRXkA2nkfSKRtU4WUzpty8aHNSPpdWa4xyy+EVdeJuYENK5 tUYA== X-Gm-Message-State: ALoCoQmag/YEphwjfC/9/JTdIo10hf//rjPna6fcQqUUgwjuCxLwXDJTqKkCQB9FUX0nqJV2/qEqMjLPpQAuBKxaNcchfJ+U3saPxhNG5B7lckLVR4S9IP6biRTzvrsJbMxli5jSWoiu MIME-Version: 1.0 X-Received: by 10.194.92.7 with SMTP id ci7mr984787wjb.58.1389776195443; Wed, 15 Jan 2014 00:56:35 -0800 (PST) Received: by 10.227.91.198 with HTTP; Wed, 15 Jan 2014 00:56:35 -0800 (PST) In-Reply-To: References: Date: Wed, 15 Jan 2014 12:56:35 +0400 Message-ID: To: Anatol Belski Cc: PHP Internals Content-Type: multipart/alternative; boundary=089e0149460272739604effe7c11 Subject: Re: [PHP-DEV] New Memory Manager From: dmitry@zend.com (Dmitry Stogov) --089e0149460272739604effe7c11 Content-Type: text/plain; charset=UTF-8 Hi Anatol, It's a Prove of Concept implementation. I publish it to decide if it makes sense to integrate it into PHP and implement support for missed things or just forget. As I wrote, at this moment, it supports only Linux, non-zts, release build. Thanks. Dmitry. On Wed, Jan 15, 2014 at 12:44 PM, Anatol Belski wrote: > Hi Dmitry, > > On Tue, January 14, 2014 15:21, Dmitry Stogov wrote: > > Hi, > > > > > > Recently I took a look into jemalloc and tcmalloc internals and tried to > > borrow some ideas. You may check the result at > > https://github.com/dstogov/php-src/tree/xx_malloc. It's a dirty prove of > > concept implementation of New Memory Manager for PHP. It was tested only > > on Linux, release, non-ZTS build. It misses support for debug mode and > ZTS > > yet. The main advantage is small but consistent speed improvement on > > real-life applications. > > > i've just gave it a try on windows, the compilation breaks with this error > > zend\xx_malloc.c(41) : fatal error C1083: Cannot open include file: > 'sys/mman.h': No such file or directory > > Google gave me this link > https://code.google.com/p/mman-win32/source/browse/trunk/ . I can go for a > fix using this lib or maybe look for another equivalent after the > str_size_and_int64 RFC finish. > > Regards > > Anatol > --089e0149460272739604effe7c11--