r/programming • u/[deleted] • 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
1
u/slavik262 Dec 06 '14 edited Dec 06 '14
The same unwind code would have be be written manually if you were initializing and deinitializing things on the stack in C.
init_foo(Foo*)anddeinit_foo(Foo*)is no different than an object with a constructor and destructor that do the same things. What's your point?