mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 05:29:10 +02:00

When copying from another regexp, copy already built `regex_t` instead of re-compiling its source.
6 lines
79 B
YAML
6 lines
79 B
YAML
prelude: |
|
|
str = "a" * 1000
|
|
re = Regexp.new(str)
|
|
|
|
benchmark:
|
|
dup: re.dup
|