diff options
| author | Jean Boussier <byroot@ruby-lang.org> | 2023-11-10 10:21:28 +0100 |
|---|---|---|
| committer | Jean Boussier <jean.boussier@gmail.com> | 2023-11-10 15:56:22 +0100 |
| commit | a2442e91fded557fe79a49a86b84565ee66e34cc (patch) | |
| tree | 4ae6f839d8a8e81acee712986f0206bd1ae9757e /include/ruby | |
| parent | 1ee69688553270b2a0a5d834d06615089effe02a (diff) | |
Embed Backtrace::Location objects
The struct is 16B, so they will use the 80B size pool, so on paper it
wastes 80 - 32 - 16 = 52B, however most malloc implementations will
either pad sizes or use an extra 16B for each segment, so in practice
the waste isn't that big. Also `Backtrace::Location` are rarely held
on for long, so avoiding the malloc churn help performance.
Co-Authored-By: Étienne Barrié <etienne.barrie@gmail.com>
Diffstat (limited to 'include/ruby')
0 files changed, 0 insertions, 0 deletions
