Posts
A walk through Python profiling Apr 29'24
Writing slow code might very well be the easiest part of doing research. Fortunately slow code often turns out to be harmless, either because it rarely needs to run or because as slow as it might be compared to how fast it could be, it’s still relatively fast compared to the surrounding code. But sometimes slow code can be a big deal and figuring out which piece of code is problematic can be as painful as debugging a messy code base (if not worse).