# ZEND_DISABLE_MEMORY_CACHE=0 problematic on large arrays

- Thread: https://externals.io/message/4614
- Original archive: https://news-web.php.net/php.internals/4614
- Started by Alan Knowles on 2003-09-30T13:21:38+00:00
- Messages: 1
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #4614 — Alan Knowles — 2003-09-30T13:21:38+00:00

URL: https://externals.io/message/4614#4614

http://cvs.php.net/diff.php/ZendEngine2/zend_alloc.c?r1=1.118&r2=1.119&ty=h&num=10

" - Add heap to memory manager. This should improve performance.
- Enabling it by default so that it gets tested. We should decide before
beta 2 if we want to revert back to malloc or not."

Well, it's got some testing today.. - and it didnt do too well..

I'm testing by using the php-gtk generator.php (that parses the gtk.defs 
scheme file into a (huge) php array.

a default php5 checkout. build on a P800 timesout after parsing about 
12000 lines in 300 seconds.

when I revert the change:
#define ZEND_DISABLE_MEMORY_CACHE 1

It parses and builds the file ok.. in < 100seconds..

Regards
Alan
