How to find the most time-consuming function?

BlitzMax Forums/BlitzMax Programming/How to find the most time-consuming function?

The Forum Archive is locked. These are the original blitzbasic.com forums, kept so their posts can still be read and searched. No new topics, replies or edits can be made here. To join the conversation, head over to the Blitz3D+ forums.

You might find that sometimes an optimization that you try to make, such as compressing something, may actually end up being slower and less efficient than the routine was before you optimized it. It really depends. Optimizing doesn't always give you better results. I would compare the optimized version of something with the original and see how it fares. Sometimes a more elegant algorithm is better, sometimes it makes a total meal of it.