oracle / truffleruby

A high performance implementation of the Ruby programming language, built on GraalVM.
https://www.graalvm.org/ruby/
Other
3.01k stars 184 forks source link

Reduce empty array allocations #3517

Closed nirvdrum closed 6 months ago

nirvdrum commented 6 months ago

While looking a heap dump taken from a load test against a Rails 7.1 application, I saw thousands of empty array allocations. I don't think these amount to much more than a few megabytes of memory, but eliminating them was easy and it cleans up the profile a bit.