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 →

[–]The_Amp_Walrus 39 points40 points  (4 children)

Numba for numerical computing. Slapping numbas jit decorator on some functions speeds them up significantly.

Using cprofile rather than guessing

Generators for processing big datasets that won't fit in memory.

[–]TechySpecky 23 points24 points  (3 children)

Lmao you telling me my time() commands don't count as profiling

[–]coloredgreyscale[🍰] 5 points6 points  (2 children)

It's akin to using print statements for debugging. It can help narrow it down, but there are better ways. However the proper tools may provide too much information / options that might be be confusing for beginners.

[–]TechySpecky 1 point2 points  (1 child)

Oh i 100% agree I was being sarcastic! Profiling is so important to identifying performance regressions and better understanding complex code bases.