diff options
| author | Max Bernstein <max@bernsteinbear.com> | 2025-07-11 12:55:06 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-07-11 16:55:06 +0000 |
| commit | b0b1712b52e6542853fc9049a6e5e207723e8c04 (patch) | |
| tree | 50844c5563ae4387b2a087d8097ba15388438436 /include/ruby/encoding.h | |
| parent | b760afe2b7fd798110273c6d4546ea5b14bb3024 (diff) | |
ZJIT: Use Vec instead of HashMap for profiling (#13809)
This is notably faster: no need to hash indices.
Before:
```
plum% samply record ~/.rubies/ruby-zjit/bin/ruby --zjit benchmarks/getivar.rb
ruby 3.5.0dev (2025-07-10T14:40:49Z master 51252ef8d7) +ZJIT dev +PRISM [arm64-darwin24]
itr: time
#1: 5311ms
#2: 49ms
#3: 49ms
#4: 48ms
```
After:
```
plum% samply record ~/.rubies/ruby-zjit/bin/ruby --zjit benchmarks/getivar.rb
ruby 3.5.0dev (2025-07-10T15:09:06Z mb-benchmark-compile 42ffd3c1ee) +ZJIT dev +PRISM [arm64-darwin24]
itr: time
#1: 1332ms
#2: 49ms
#3: 48ms
#4: 48ms
```
Diffstat (limited to 'include/ruby/encoding.h')
0 files changed, 0 insertions, 0 deletions
