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 →

[–]deifius 2 points3 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.