[libc-commits] [libc] [libc][newheadergen]: adding entry_point testing (PR #99587)

Joseph Huber via libc-commits libc-commits at lists.llvm.org
Fri Jul 19 11:09:57 PDT 2024


jhuber6 wrote:

I'm somewhat wondering what the actual performance implications are for the trivial implementation versus the `realloc` one. I.e.
```
size_t chars = vsnprintf(nullptr, 0, format, args)
void *buffer = malloc(chars + 1);
vsnprintf(buffer, chars, format, args);
```
Just wondering since the GPU really hates function pointers.

https://github.com/llvm/llvm-project/pull/99587


More information about the libc-commits mailing list