diff options
| author | Jean Boussier <jean.boussier@gmail.com> | 2025-11-01 11:06:32 +0100 |
|---|---|---|
| committer | git <svn-admin@ruby-lang.org> | 2025-11-01 10:22:55 +0000 |
| commit | babf50e33bb0d9e1f3c37d11c1cfdc50c4f5bc7e (patch) | |
| tree | 597b26775a7206fd268a598f7162392b142c961f /include/ruby/internal/encoding/coderange.h | |
| parent | db5708045037a159458de741b46e9c47fe430284 (diff) | |
[ruby/json] Use SWAR for parsing integers on little endian machines
Closes: https://github.com/ruby/json/pull/878
```
== Parsing float parsing (2251051 bytes)
ruby 3.4.6 (2025-09-16 revision https://github.com/ruby/json/commit/dbd83256b1) +YJIT +PRISM [arm64-darwin24]
Warming up --------------------------------------
after 23.000 i/100ms
Calculating -------------------------------------
after 214.382 (± 0.5%) i/s (4.66 ms/i) - 1.081k in 5.042555s
Comparison:
before: 189.5 i/s
after: 214.4 i/s - 1.13x faster
```
https://github.com/ruby/json/commit/6348ff0891
Co-Authored-By: Scott Myron <samyron@gmail.com>
Diffstat (limited to 'include/ruby/internal/encoding/coderange.h')
0 files changed, 0 insertions, 0 deletions
