Actions
Bug #8847
closed
opt_regexpmatch2 does not use method caching
Bug #8847:
opt_regexpmatch2 does not use method caching
Status:
Closed
Assignee:
-
Target version:
-
ruby -v:
ruby 2.1.0dev (2013-08-31 trunk 42741) [x86_64-darwin12.4.0]
Backport:
Description
The opt_regexpmatch2 instruction does not use method caching, instead it uses rb_funcall internally.
opt_regexpmatch2 is emitted by the compiler when a literal regexp is on the right hand side of the =~ operator.
This means a full method lookup must be performed every time the receiver of the =~ method call is not a String.
Actions