Example of Using the Profiler to Help Reduce the Execution Time of a Function
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.
댓글
댓글을 남기려면 링크 를 클릭하여 MathWorks 계정에 로그인하거나 계정을 새로 만드십시오.