Optimising code performance is known to be the black art and don’t worry about optimisation until you really need it. Hence don’t forget that, “premature optimisation is the root of evil”. Here are some useful points that you should consider while writing your code: You can really increase the speed of hashing by using fast [...]
Posts Tagged ‘performance’
Scalability Tips for Building Fast Applications
A Few Notes on Latency and Performance Optimization
Peter Norvig in his incredible article “Teach Yourself Programming in Ten Years” introduces the following table which is still valid (not the numbers but the ratios) and useful for developers: execute typical instruction 1/1,000,000,000 sec = 1 nanosec fetch from L1 cache memory 0.5 nanosec branch misprediction 5 nanosec fetch from L2 cache memory 7 [...]
Memoization
What is memoization? Memoization is a code optimisation technique in which instead of calculating same values over and over you calculate the value and save it in a variable. In short you save a calculated answer in a variable for later use. This techniques make your code faster by avoiding redundant calculations and function calls. [...]

Recent Comments