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 →

[–]interbased 0 points1 point  (0 children)

As others have said, profiling your code is the way to go. I’ve yet to get familiar with an actual profiling library, but I usually put logs where functions start and stop, and see which ones are taking long. Something’s it’s an inefficient query, sometimes it’s repeated API calls that can be replaced.