Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
The Joy of Optimizing
Message
From
17/03/2010 13:50:28
 
General information
Forum:
Politics
Category:
Other
Miscellaneous
Thread ID:
01455020
Message ID:
01455154
Views:
40
I your code can fit completely within the memory cache within the processor you can speed up execution quite a bit. Granted, it's not something you'd be really worried about in a business app.

There's one story I recall back from my university days -- where a simple change in code (changing array indicies around) made a signficant difference in program execution. The program in question was written by someone who wasn't paying attention (nor was aware) of how arrays were implemented in the particular language (e.g. row major or column major). In a nutshell due to the way the program was written it was generating a page fault on almost all array accesses. A simple swap of array indicies significantly reduced the number of page faults and allowed the program to actually complete execution (previously it would never finish and would get kicked out when they brought the computer down for PM).
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform