Re: New Memory Manager
| From: | Anatol Belski | Date: | Wed, 15 Jan 2014 08:44:27 +0000 |
| Subject: | Re: New Memory Manager | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-71134@lists.php.net to get a copy of this message | ||
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