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