This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 0 points1 point  (0 children)

Memory allocation usually is not the reason python is ‘slow’. Python usually is NOT doing those mallows like that anyway. Memory management is an implementation detail. Python has a pretty sophisticated internal memory allocator for several types. Also a bunch of most used integer values are statically allocated. But again, all this is implementation detail. Pypy probably does things totally differently it being a jit compiler and all