diff options
| author | Chris HasiĆski <krzysztof.hasinski@gmail.com> | 2026-01-11 03:45:44 +0100 |
|---|---|---|
| committer | Nobuyoshi Nakada <nobu.nakada@gmail.com> | 2026-01-11 21:42:37 +0900 |
| commit | a071078e907af99db737799410d713d5ec953eb7 (patch) | |
| tree | a426b8c6e87bf6756bb37996b65f84231011884d /test/ruby | |
| parent | 3363861a5af679e7027bdd744fc05d7a797ba33c (diff) | |
pack.c: remove wasted allocation in BER integer packing
The 'w' format (BER compressed integer) was allocating an empty
string with rb_str_new(0, 0) then immediately overwriting it with
the correctly-sized allocation. Remove the wasted first allocation.
~50% improvement on BER pack benchmarks.
Diffstat (limited to 'test/ruby')
0 files changed, 0 insertions, 0 deletions
