diff options
| author | Aaron Patterson <tenderlove@ruby-lang.org> | 2024-02-13 08:20:27 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-02-13 16:20:27 +0000 |
| commit | c35fea8509551aefe257986c937ea7147f436bdf (patch) | |
| tree | 1c7cfb948db049aedffa0305e25e14d56d21f314 /include/ruby/ruby.h | |
| parent | a71d1ed83875600c174e66a8ace18e0ad451958a (diff) | |
Specialize String#byteslice(a, b) (#9939)
* Specialize String#byteslice(a, b)
This adds a specialization for String#byteslice when there are two
parameters.
This makes our protobuf parser go from 5.84x slower to 5.33x slower
```
Comparison:
decode upstream (53738 bytes): 7228.5 i/s
decode protobuff (53738 bytes): 1236.8 i/s - 5.84x slower
Comparison:
decode upstream (53738 bytes): 7024.8 i/s
decode protobuff (53738 bytes): 1318.5 i/s - 5.33x slower
```
* Update yjit/src/codegen.rs
---------
Co-authored-by: Maxime Chevalier-Boisvert <maximechevalierb@gmail.com>
Diffstat (limited to 'include/ruby/ruby.h')
0 files changed, 0 insertions, 0 deletions
