Example of Using the Profiler to Help Reduce the Execution Time of a Function
source link: https://blogs.mathworks.com/videos/2024/04/25/example-of-using-the-profiler-to-help-reduce-the-execution-time-of-a-function/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
Example of Using the Profiler to Help Reduce the Execution Time of a Function » Stuart’s MATLAB Videos
I have a function which analyzes the contents of a few hundred folders. Its taking several minutes to run and I use it a lot, so I want to try and make it execute faster.
I propose using the profiler to try and understand where the time is spent and explore some code changes.
I often find with my performance improvement work, that the first changes I make are to my algorithm, or code architecture. For example, by ensuring that I only execute the computations that I need to. Later, I might then look at speeding up those computations.
Features covered in this code-along style video include:
Play the video in full screen mode for a better viewing experience.
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK