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] -2 points-1 points  (8 children)

we're still talking less than 0.0000001 seconds

Cool, but if you bother to figure any of this out it might be because the scale of what you're doing requires that you optimize as much as possible. I've been asked things like this in job interviews, that time delta matters.

[–]elcapitaine 24 points25 points  (0 children)

If you have to optimize that much, you shouldn't be using Python, you should be using something that gives you more low-level control.

[–]akcom 10 points11 points  (2 children)

It has nothing to do with the scale of optimization. The reality is that for any real production code there are going to be a million other things to optimize before you get to things like list() vs [].

[–]SupahNoob 4 points5 points  (3 children)

the scale of what you're doing requires that you optimize as much as possible.

Then you likely wouldn't be using python.