The stupid question is the question not asked | |
PerlMonks |
Re^2: Threads From Hell #2: How To Parse A Very Huge Fileby BrowserUk (Patriarch) |
on May 24, 2015 at 07:56 UTC ( [id://1127564]=note: print w/replies, xml ) | Need Help?? |
And then there's:
Looks dodgy to me. And then the claim that: The following code snippet parses the 2 GiB file in 1 second. Let's examine that. The code: slurps the entire 2GiB file into memory and then starts 4 workers that each get a reference to (1/4 of???) the slurped data and then:
So the regex is run against 1.25 times as much data as is contained in the file, and takes "less than one second"; which is less than the 2.127 seconds the real grep takes, despite that it only processes the file's data once? Have you heard the song: Funny numbers? With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
I'm with torvalds on this
In the absence of evidence, opinion is indistinguishable from prejudice. Agile (and TDD) debunked
In Section
Seekers of Perl Wisdom
|
|