Ask HN: Help finding python profiling article
1–7 of 7 posts
Re: Ask HN: Help finding python profiling article
#2???
Re: Ask HN: Help finding python profiling article
#3From here: https://hn.algolia.com/?q=python+profile#!/story/forever/0/p...
I use pinboard to bookmark anything that I think has the slightest chance that I'll want to see it again. Most of the time I never look at a bookmark again, because you usually don't know what you'll need in the future. But I've found enough things like what you're looking for (but not this time obviously) that the practice has become worthwhile.
Re: Ask HN: Help finding python profiling article
#4Re: Ask HN: Help finding python profiling article
#5Another trick is to look at your innermost loops, and make sure you aren't doing accessing anything fancier than a variable.
Example
Bad:
for i in onemillionthings: for j in onemillionotherthings: print SomeClass.otherthing.A
Better: tempvar=SomeClass.otherthing.A for i in onemillionthings: for j in onemillionotherthings: print tempvar
Re: Ask HN: Help finding python profiling article
#6python profiling site:news.ycombinator.com ???
Re: Ask HN: Help finding python profiling article
#7I will continue to search and will post back here once I find it. Thanks for everyone's help.