summaryrefslogtreecommitdiff
path: root/test/ruby/test_defined.rb
diff options
context:
space:
mode:
authorYusuke Endoh <mame@ruby-lang.org>2023-12-27 16:51:04 +0900
committergit <svn-admin@ruby-lang.org>2024-10-17 08:54:45 +0000
commit3911189fba46714eec886452b934258e001dd12b (patch)
tree16773d72e141e44463233b9089d232f135082fd4 /test/ruby/test_defined.rb
parent7962b4c342dbf7f71be61ca4b37baf815fd4c0e6 (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/test_defined.rb')
0 files changed, 0 insertions, 0 deletions