4 ms·
Interesting point, though again much more complex. [edit] Anyone reading this: Do not discard cProfile like I did. It just let me shave 900 ms off the startup
by mherrmann 9y ago
Interesting point, though again much more complex.
[edit] Anyone reading this: Do not discard cProfile like I did. It just let me shave 900 ms off the startup time of my file manager (mentioned in a child comment). Wow!
- mattmanser 9y agoI admit they take time up front to learn to use and interpret the results, but it's a valuable skill and worth doing every year or so even on smaller projects to see if there are any easy wins.
- mherrmann 9y agoYes, you're right. Mine is just the simplest and probably least powerful solution. cProfile is definitely more powerful.
- rrauenza 9y agoI think yours still has a valid use in production logging...
- mherrmann 9y agoOmg, cProfile just let me shave 900ms off the startup-time of my PyQt-based file manager [1]. I would not have found this that quickly without your hint. Thank you! [1]: https://fman.io https://fman.io
- mattmanser 9y agoNo problem! This was on the front page today, but flagged as a dupe, also an interesting read as it explains about flame graphs too: https://news.ycombinator.com/item?id=14384370 https://news.ycombinator.com/item?id=14384370