Re: Memory needed for arrays? And major performance problems filling an array

From: Date: Thu, 09 Dec 2004 11:53:47 +0000
Subject: Re: Memory needed for arrays? And major performance problems filling an array
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-14035@lists.php.net to get a copy of this message
On Thu, 9 Dec 2004, Matt W wrote: > Before I describe my issue, I had been wondering how I can tell/estimate > how much memory PHP will use for arrays? Is there at least a rough formula > someone can tell me? 42 * number of array elements + size of keys + data > This is disappointing, especially being caused by an array that doesn't > seem too outrageously large (and I'd like to go larger). :-( It's going to > suck if I can't come up with a way to get it faster... Is there anything > that would be different on a version newer than 4.3.6, as I didn't try any > yet? Or if it's some Windows thing, then I don't care as much. > > Comments, suggestions? Make a custom C extension.. I don't know why you needs arrays this large, but it sounds like a application design flaw. Derick

« previous php.internals (#14035) next »