Skip to content
Better HN
Top
Best
Ask
Show
New
Jobs
Search
⌘K
0 points
mborch
11y ago
0 comments
Save
Share
How is allocating and populating a Python list order to do a simple for loop in a tight inner loop not problematic? Neither CPython nor PyPy can optimize that out.
As I said, this is assuming we're on Python 2.x.
0 comments
1 comments · 1 top-level
top
newest
oldest
rguillebert
11y ago
PyPy optimizes that out, you have a thing that looks exactly like a list, but is implemented differently under the hood
j
/
k
navigate · click thread line to collapse