In the last episode (Jan 29), Martin Baehr said:
On Tue, Jan 28, 2003 at 08:25:03PM +0100, Martin Nilsson (Åskblod) @ Pike (-) developers forum wrote:
There are of course dos and donts in Pike as well, but we try to adress them in the optimizer when we find them.
details? what about appending elements to an array vs a mapping? the latter is supposed to be faster (some people claim anyways)
When array_append has to resize an array, it grows it by 50%, so apart from a bit of wasted memory on large arrays I think it's very efficient. It also depends on what your data is and what you're going to do with it. If the index of your mapping is not an integer, you really can't put it in an array anyhow.