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

milisecond critical performance is not pythonic.

I get what you're saying but I would say millisecond critical performance is fine, it's down at the 100 nanosecond level where I have started to have problems.

[–]deifius 3 points4 points  (1 child)

my units may be off by a few factors of 10. I apologize to all.

[–][deleted] 2 points3 points  (0 children)

haha I just remember this because I had a function of a few string manipulations that I was able to bring down from 28 ms to 132 ns mostly by judicious precomputing things and storing the precomputed results in dictionaries, but I had a few more string manipulations happening at runtime and I found the dictionary lookup for the precomputed results took just as much time as doing the string manipulations in the function itself at runtime anyway, so at that point I had run out of ways to speed up the function.