in reply to Re^2: How to optimize a regex on a large file read line by line ?
in thread How to optimize a regex on a large file read line by line ?
It's impressiv ! And i've test successfully your code. Eventually the Strawberry dist works the best on my system.
"It's works even well with the mixed file (multiple kind of EOF) ! Benchmarking both the 3 methods, i've found 32,53 and 33,07 for the two codes provided kindfully. My current code (works only on a cr+lf or lf file) have done 33,76".
It's impressive to see the 8 CPU cores up to 100% at the same time with your demo ! But the results only slightly differs with my code which doesn't impact all the core at all like that. Strange !
Very happy anyway, i'm now close to the best performance i could got on my laptop with perl !
. Grep : 10,71 . Java : 25,95 . C# : 30,05 . Perl : 32,53 . C++ : 41,3 . PHP : 52,31 . Free Pascal : 76,46 . Delphi 7 : 78,14 . VB.NET : 100,15 . Python : 315,13 . PowerShell : 681,93 . VBS : 1031,63 . Ruby : Failed to parse the file correctly.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: How to optimize a regex on a large file read line by line ?
by Anonymous Monk on Apr 18, 2016 at 16:37 UTC | |
by John FENDER (Acolyte) on Apr 19, 2016 at 23:13 UTC | |
by Anonymous Monk on Apr 20, 2016 at 20:48 UTC | |
|
Re^4: How to optimize a regex on a large file read line by line ?
by LanX (Saint) on Apr 17, 2016 at 22:48 UTC | |
by John FENDER (Acolyte) on Apr 18, 2016 at 06:31 UTC |