cjdb added a comment. In D129951#3657923 <https://reviews.llvm.org/D129951#3657923>, @cjdb wrote:
> ~~Looking at the output from Clang 14 <https://godbolt.org/z/5rjxa5nTT>, I'm > observing that a binary with 178 function templates is 13% the size of the > one with 89 function objects. When only one function object is used vs all > 178 function templates, the functions still win out, with the binary being > 80% the size.~~ I wrote this quite late at night and confused total lines of assembly with program size. That's not accurate at all. There doesn't seem to be a difference between the two when the optimiser is enabled, but with: - `-O0`: there's a binary size difference of 24kB. - `-Og -g`: there's a binary size difference of 32kB. - `-g`: there's a binary size difference of 59kB. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D129951/new/ https://reviews.llvm.org/D129951 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits