29 ms·
Smaller memory footprints can make code faster, but making code faster often creates a bigger memory footprint. For instance, pipelining an operation to allow
by hinkley 6y ago
Smaller memory footprints can make code faster, but making code faster often creates a bigger memory footprint.
For instance, pipelining an operation to allow multiple CPUs to work on a problem at once can reduce the pressure on the tall tent pole, be it IO bottlenecks or one phase. Time is still dictated by the tallest tent poles, but not also by the fourth through tenth tallest poles.
But now everything is happening at once, which means all of the temporary data structures exist in memory in parallel, instead of sequentially.
Heavily paraphrasing someone else: The simple things get taken care of early. If we're standing around talking about problems in a successful tool, they're complicated. Although I disagree with that person on one point: we can also be talking about problems that were complicated to diagnose (but straightforward to fix).