News for hackers. Stuff that matters.
Re:Why Python Is Slow: Looking Under the Hood by CyberDildonics on Tuesday November 18, 2014 @02:32PM (#8625801)
Does that also imply that a small integer is created on the heap? I would think the heap allocation would be the huge performance killer.
Re:Why Python Is Slow: Looking Under the Hood by plikan13 on Tuesday November 18, 2014 @05:45PM (#8626889)
Python is not going to call malloc(..) for every single object that you create. It will allocate a block of same-sized objects and maintain a linked list of free slots.