3 ms·
just to be clear - runsnakerun is a viewer that presents data from the standard python profiler package. you can use the profiler without it - see http://docs.
by andrewcooke 15y ago
just to be clear - runsnakerun is a viewer that presents data from the standard python profiler package. you can use the profiler without it - see http://docs.python.org/library/profile.html http://docs.python.org/library/profile.html
also, when you're using a new api, it's worth paying attention to the default arguments for functions. since .pop() has an implicit argument of -1 you shouldn't be surprised that popping from the end of an array is most efficient (this is related to the O(n^2) v O(n) issue mentioned in the article).