summaryrefslogtreecommitdiff
path: root/spec/ruby
diff options
context:
space:
mode:
authorKoichi Sasada <ko1@atdot.net>2021-02-13 05:37:46 +0900
committerKoichi Sasada <ko1@atdot.net>2021-02-13 11:51:33 +0900
commit813fe4c256f89babebb8ab53821ae5eb6bb138c6 (patch)
treed10671304bc5f7e3c70e0c9466bd33050f6e2c69 /spec/ruby
parent81995797bb4d2db11635f716e9230206b1283ec7 (diff)
opt_equality_by_mid for rb_equal_opt
This patch improves the performance of sequential and parallel execution of rb_equal() (and rb_eql()). [Bug #17497] rb_equal_opt (and rb_eql_opt) does not have own cd and it waste a time to initialize cd. This patch introduces opt_equality_by_mid() to check equality without cd. Furthermore, current master uses "static" cd on rb_equal_opt (and rb_eql_opt) and it hurts CPU caches on multi-thread execution. Now they are gone so there are no bottleneck on parallel execution.
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/4177
Diffstat (limited to 'spec/ruby')
0 files changed, 0 insertions, 0 deletions