Project

General

Profile

Actions

Bug #8847

closed

opt_regexpmatch2 does not use method caching

Bug #8847: opt_regexpmatch2 does not use method caching

Added by Anonymous over 12 years ago. Updated over 12 years ago.

Status:
Closed
Assignee:
-
Target version:
-
ruby -v:
ruby 2.1.0dev (2013-08-31 trunk 42741) [x86_64-darwin12.4.0]
[ruby-core:56916]

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

Also available in: PDF Atom