4 ms·
Cool! I didn't know Google did a plain C one (thought those were C++) and yours looks interesting. But my original point was there is no stantard way. It shoul
by alecco 18y ago
Cool! I didn't know Google did a plain C one (thought those were C++) and yours looks interesting.
But my original point was there is no stantard way. It should be part of CXX, libc, or POSIX, IMHO. C is just too atomized.
- scott_s 18y agoThere's a standard interface, but there's no standard implementation - which is how standards generally work. Also, I can't edit my post, but that should say "it's not tested as heavily."
- alecco 18y agoI was thinking more along the lines of automatic memory in my original grandparent post. [yeah, I guessed you meant that from the sentence structure]
- scott_s 18y agoThen C is not what you're looking for. I'm not arguing against garbage collected languages, but for the necessity of non-GC languages to exist.
- alecco 18y agoHmmm, not so fast... This is not cool: In particular, at startup TCMalloc allocates approximately 6 MB of memory.
- scott_s 18y agoDepends on your needs. TCMalloc trades space for speed.