diff options
| author | Yusuke Endoh <mame@ruby-lang.org> | 2023-12-27 16:51:04 +0900 |
|---|---|---|
| committer | git <svn-admin@ruby-lang.org> | 2024-10-17 08:54:45 +0000 |
| commit | 3911189fba46714eec886452b934258e001dd12b (patch) | |
| tree | 16773d72e141e44463233b9089d232f135082fd4 /test/ruby | |
| parent | 7962b4c342dbf7f71be61ca4b37baf815fd4c0e6 (diff) | |
[ruby/json] Use efficient object-type dispatching
Dispatching based on Ruby's VALUE structure is more efficient than
simply cascaded "if ... else if ..." checks.
This speeds up `JSON.generate` by about 5% in a benchmark.
https://github.com/ruby/json/commit/4f9180debb
Diffstat (limited to 'test/ruby')
0 files changed, 0 insertions, 0 deletions
