4 ms·
I've seen a page that just displayed a grid of images. It took seconds of CPU time on an i7. The page doubled its load time if you had CPU throttling. I'm not s
by MichaelGG 10y ago
I've seen a page that just displayed a grid of images. It took seconds of CPU time on an i7. The page doubled its load time if you had CPU throttling. I'm not sure what the ultimate reason was, but the end result was that, as far as the user saw, the page did a fancier looking <table> and required billions of cycles to do so.
- squeaky-clean 10y agoWhile that technically may be a cpu bottleneck, I like to look at it as an implementation bottleneck. I can write a pong game that will be bottlenecked by any cpu if I make it calculate a million digits of pi at the start of each game loop, but it doesn't mean my game is more hardcore than Crysis.
- MichaelGG 10y agoIt's obviously an implementation issue. The question is how do otherwise sane-appearing individuals end up writing code like that? How does it even pass a preliminary usage test? And so on. This wasn't some big enterprise, either.
- other_herbert 10y agoThat question haunts all of us... For instance... Lets say you need to query a db to get 4 known sets of things aggregated by other things... That should scream at you "in clause with the known params and group by" or.... if you take an approach I saw recently you spawn 4 worker threads each querying the same tables but with one of those 4 params then combining the records.... I'm afraid this board may constitute the remaining sane individuals... Edit those known params were all used as a param for the same column