jakub.wozny (Kuba W)
- Login: jakub.wozny
- Registered on: 01/29/2018
- Last sign in: 05/30/2018
Issues
| open | closed | Total | |
|---|---|---|---|
| Assigned issues | 0 | 0 | 0 |
| Reported issues | 0 | 1 | 1 |
Activity
01/29/2018
-
06:31 PM Ruby Bug #14418: ruby 2.5 slow regexp execution
- Ok, Blow is the regexp that I tested. I used utf-8 encodnings at the begining:
~~~ ruby
"fußball "*20 =~ /([\S\s]{1000})/i
~~~
Some measurements:
~~~ ruby
(0..20).each { |n| puts Benchmark.measure { "fußball "*n =~ /^([\S\s]... -
03:25 PM Ruby Bug #14418: ruby 2.5 slow regexp execution
- I can't paste the code here corectly. I creted a gist with regexp: https://gist.github.com/kubaw/60ca998200d80883156fa94efa7eb6fe
-
03:17 PM Ruby Bug #14418 (Closed): ruby 2.5 slow regexp execution
- I have simple regexp that performing very slow.
~~~ ruby
"fußball "*20 =~ /^([\S\s]{1000})/i
~~~
It works fast if I remove `/i` flag. I figured out that is also depends on string length or on quantifier value (in this case it is ...