logoalt Hacker News

pronyesterday at 9:36 PM5 repliesview on HN

Using a lot less RAM often implies using more CPU, so even with inflated RAM prices, it's not a good tradeoff (at least not in general).


Replies

zozbot234yesterday at 10:13 PM

In practice, you generally see the opposite. The "CPU" is in fact limited by memory throughput. (The exception is intense number crunching or similar compute-heavy code, where thermal and power limits come into play. But much of that code can be shifted to the GPU.)

show 1 reply
zamadatixyesterday at 10:07 PM

The tradeoff has almost exclusively been development time vs resource efficiency. Very few devs are graced with enough time to optimize something to the point of dealing with theoretical tradeoff balances of near optimal implementations.

show 1 reply
DimmieManyesterday at 9:47 PM

Only if the software is optimised for either in the first place.

Ton of software out there where optimisation of both memory and cpu has been pushed to the side because development hours is more costly than a bit of extra resource usage.

dehrmannyesterday at 10:36 PM

You're thinking an algorithmic tradeoff, but this is an abstraction tradeoff.

show 1 reply
IsTomyesterday at 9:46 PM

Or just using less electron and writing less shit code.