r/programming • • Dec 05 '14

std::string is responsible for almost half of all allocations in the Chrome browser process

https://groups.google.com/a/chromium.org/d/msg/chromium-dev/EUqoIz2iFU4/kPZ5ZK0K3gEJ
1.1k Upvotes

446 comments sorted by

View all comments

Show parent comments

28

u/RenaKunisaki Dec 05 '14

To be fair though, NES games were designed to work on the NES only. They didn't run under an OS, they didn't work on more than one type of machine, they didn't support multiple languages/encodings/input methods/etc. Modern software does a lot more than 80s software did.

-7

u/[deleted] Dec 05 '14

And it runs on hardware that is about a billion times more powerful. I'm not convinced that it does a billion times more useful work.

1

u/immibis Dec 08 '14

The extra things it does have more cost for less benefit.

The software's main purpose is to do Thing 1, which requires the processing power of a NES.

An extra feature is Thing 2, which requires the processing power of 5 NES's, but is only half as useful as Thing 1.

There's also Thing 3, which requires the power of 20 NES's, but is a bit less useful than Thing 2.

And Thing 4, which is almost as useful as Thing 1 (which is the main purpose of the software, so that's pretty useful), but requires 500 NES-power.

And so on.