[LLVMdev] getElapsedWallTime unnecessary heap allocation and memory leak

Amit Rawat amit_rawat at fastmail.fm
Wed Mar 19 06:43:29 PDT 2014


Probably because so many static allocations (in this and other small
functions) may lead to increase in the size of the executable, if there
were say even a 100 functions all having a static allocated variable,
it would need around 400 byte in the executable, a bigger object will
require even more.

That's the best explanation I can think of.

-- 
http://www.fastmail.fm - The professional email service

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20140319/8a6fba0b/attachment.html>


More information about the llvm-dev mailing list