in reply to Re: RE on lines read from in-memory scalar is very slow
in thread RE on lines read from in-memory scalar is very slow
> CRLF line endings
... seems to be a plausible theory. (I seem to remember a similar discrepancy discussed here not too long ago... (or was it WSL?))
Now I'd turn the test around.
I'd try to autogenerate the string with various forms of line endings and try to see what happens.
Those variants could also be written to disk and tested again.
Unfortunately I have no windows at disposal right now.
My bet is that a string generated with plain "\n" behaves normal.
If not we would at least have taken the filesystem out of the equation.
And with generated text we could test if the time consumption is linear to the the size.
Cheers Rolf
(addicted to the Perl Programming Language :)
see Wikisyntax for the Monastery
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: RE on lines read from in-memory scalar is very slow (cygwin and \n)
by kcott (Archbishop) on Jan 24, 2024 at 16:04 UTC | |
by LanX (Saint) on Jan 24, 2024 at 21:40 UTC |