4 ms·
Memory management is obscure. `malloc` isn't free either, and gc has been shown to allow some 'out-of-order' benefits. It's a different way of thinking altogeth
by agumonkey 12y ago
Memory management is obscure. `malloc` isn't free either, and gc has been shown to allow some 'out-of-order' benefits. It's a different way of thinking altogether. Right now libart's AOT makes launching overhead very small and tight loops faster but sometimes it introduces lags that I didn't have under Dalvik.
- sz4kerto 12y ago> `malloc` isn't free I see what you did there. :)
- agumonkey 12y agoHa. I wish, but it was too early in the morning for me to generate such puns.
- wabbawabbe 12y agoWhat's the pun ?
- jimktrains2 12y agofree() is the "counterpart" to malloc(). malloc() lets you allocate memory for your use; free() returns that memory back to the system. The original posters meaning was that "malloc() has non-trivial execution costs", but the other meaning is, tautologically, malloc is the "complement" of free (think true is not false).