Reduce allocations in when it is empty

christoph.dreis at christoph.dreis at
Thu Apr 20 08:52:20 UTC 2023


I've been profiling our compilation tasks lately and noticed that is under the top consumers.

There are probably more aggressive options to optimize , but I found that checking for empty lists already reduces the overall allocations by ~500MB for one of our compilation tasks with no measurable regressions (but also no noticeable improvements) in timings. See for more information and some screenshots.

In case you consider this worthwhile, I'd appreciate a sponsoring of this (including a ticket because I have no rights to create one, review etc.). I've found but this was closed as won't fix.
Let me know what you think.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the compiler-dev mailing list