diff options
author | Aaron Patterson <[email protected]> | 2024-02-13 08:20:27 -0800 |
---|---|---|
committer | <[email protected]> | 2024-02-13 16:20:27 +0000 |
commit | c35fea8509551aefe257986c937ea7147f436bdf () | |
tree | 1c7cfb948db049aedffa0305e25e14d56d21f314 /yjit/bindgen/src/main.rs | |
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 <[email protected]>
-rw-r--r-- | yjit/bindgen/src/main.rs | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -224,6 +224,7 @@ fn main() { .allowlist_function("rb_ec_str_resurrect") .allowlist_function("rb_str_concat_literals") .allowlist_function("rb_obj_as_string_result") // From include/ruby/internal/intern/parse.h .allowlist_function("rb_backref_get") |