You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When you begin writing code, and the plan changes half way through it's easy for bottlenecks that weren't previously a problem to appear. These can be recognised and easily addressed, they mostly revolve around redundant repetition.
Repeating the same operation to calculate a value every iteration of a loop (move the operation outside the loop so that it's performed once)
Regularly calling a function that performs an expensive operation to return a predictable result (cache results, LRU cache decorator).
Reading the same file from disk multiple times (read it once and cache it in memory).
??
The text was updated successfully, but these errors were encountered:
When you begin writing code, and the plan changes half way through it's easy for bottlenecks that weren't previously a problem to appear. These can be recognised and easily addressed, they mostly revolve around redundant repetition.
The text was updated successfully, but these errors were encountered: