Re:How big are PHP arrays (and values) really?
by masklinn on Friday December 16, 2011 @06:25AM
(#3360376)
> Smarter implementations, notably PyPy, will do escape analysis, and never actually end up allocating those objects.
Objects in a collection (which is what we're talking about here) escape kind-of by default.
Until type-specialized collections are merged in PyPy (if they are not yet), it'll have the same issue as CPython.
(My point is that not having unboxed types does not imply being a memory hog. You just need a smarter implementation.)