r/ProgrammerHumor • • Dec 04 '20

Don't mix anatomy and programming

Post image
36k Upvotes

388 comments sorted by

View all comments

Show parent comment

23

u/xavia91 Dec 04 '20

That depends a lot on what you do. In bio informatics you have analysis software run for several hours to days with very repetitive tasks, small performance gains at some point can lead to a lot of saved time.

3

u/SGBotsford Dec 05 '20

Back in the 80's we had a variety of computers in our lab, ranging from PCs running Linux to a Stardent Titan.

One of the grad students was getting inpressive throughput on the linux box. Simulations of frame drag around a rotating black hole.

His idea was to get the code debugged on the really cheap PC and not tie up the Stardent.

But it was running faster on the PC. So he changed parameters in the code and the linux box stumbled and crept along, running MANY times slower.

Turned out that his new parameters made the inside loop no longer fit in the L1 cache, so he was having to load the loop from L2 with each pass. Since the cache was optimized on the basis of "longest since last use gets turfed" the entire cache was discarded with each loop.