3 ms·
Learn how to use a decent profiler. if you're running linux, that's probably perf: https://man7.org/linux/man-pages/man1/perf.1.html https://man7.org/linux/man
by shoo 4y ago
Learn how to use a decent profiler. if you're running linux, that's probably perf:
https://man7.org/linux/man-pages/man1/perf.1.html https://man7.org/linux/man-pages/man1/perf.1.html
https://www.brendangregg.com/perf.html https://www.brendangregg.com/perf.html
Here's a fun article from the cloudflare blog that gives an example of using of perf to diagnose performance of a small utility: https://blog.cloudflare.com/when-bloom-filters-dont-bloom/ https://blog.cloudflare.com/when-bloom-filters-dont-bloom/
Matt Godbolt's compiler explorer is also worth checking out: https://godbolt.org/ https://godbolt.org/