I’ve a perform which analyzes the contents of some hundred folders. Its taking a number of minutes to run and I take advantage of it rather a lot, so I need to attempt to make it execute sooner.
I suggest utilizing the profiler to attempt to perceive the place the time is spent and discover some code modifications.
I typically discover with my efficiency enchancment work, that the primary modifications I make are to my algorithm, or code structure. For instance, by guaranteeing that I solely execute the computations that I must. Later, I’d then have a look at rushing up these computations.
Options lined on this code-along type video embrace:
Play the video in full display mode for a greater viewing expertise.