Hacker News new | past | comments | ask | show | jobs | submit login

I 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.



Omg, 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


No 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


Yes, you're right. Mine is just the simplest and probably least powerful solution. cProfile is definitely more powerful.


I think yours still has a valid use in production logging...




Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: