In this blog I demonstrate how you can implement and take advantage of caching in your Python scripts/applications.
Caching allows you to complete tasks more rapidly by storing and reusing results for repeated operations using the same criteria. For example, consider a function that takes several arguments and performs a complex calculation. What if you passed the same arguments to this function ten times; well, without caching, the same operation and complex calculation will be performed ten times. (more…)
Posts Tagged ‘dictionary’