3 ms·
How does tcmalloc optimize away new/deletes at compile time exactly?
by inquirrer 7y ago
How does tcmalloc optimize away new/deletes at compile time exactly?
- scott_s 7y agoNot optimize them away entirely, but eliminate the actual function call through inlining. User-code can implement their own new and delete. If those implementations are available during compilation, then they are candidates for inlining just like any other function.