bitcoin/bitcoin — pull request #1486 by TheBlueMatt (2012-06-19 20:53:54+00:00)
Title: Skip tons of duplicate GetHash() calls in Block Commit Thread

Based on #1233 and #1405 (mostly just because I happened to be on that branch when I started and didnt feel like rebasing)...

KCacheGrind screenshot of partial block downloads via -loadblock of just the block commit thread (the bottleneck) on tmpfs (note the highlighting of calls to SHA256):
Before: http://i.imgur.com/l2dvV.png
After: http://i.imgur.com/9xc5S.png