in reply to Re: Best method to diff very large array efficiently
in thread Best method to diff very large array efficiently
Interesting. Here are the results of your benchmark (-Set::Scalar) run using my default perl (5.10.1 64-bit):
C:\test>1064178-b.pl Rate listCompare OPdiff hash_grep OPdiffModified OPdi +ff_undef using_vec listCompare 12.9/s -- -86% -93% -94% + -94% -95% OPdiff 95.1/s 639% -- -48% -52% + -53% -65% hash_grep 185/s 1334% 94% -- -8% + -9% -32% OPdiffModified 200/s 1452% 110% 8% -- + -2% -27% OPdiff_undef 203/s 1478% 114% 10% 2% + -- -26% using_vec 273/s 2019% 187% 48% 37% + 34% --
And this using 5.18 64-bit (also minus List::Compare):
C:\test>\perl5.18\bin\perl 1064178-b.pl Rate OPdiff using_vec hash_grep OPdiffModified OP +diff_undef OPdiff 126/s -- -22% -31% -43% + -44% using_vec 162/s 28% -- -12% -26% + -28% hash_grep 183/s 45% 13% -- -17% + -19% OPdiffModified 220/s 74% 36% 20% -- + -2% OPdiff_undef 225/s 79% 39% 23% 2% + --
They've really screwed up vec. ( Along with substr and a bunch of others :( )
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".
In the absence of evidence, opinion is indistinguishable from prejudice.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: Best method to diff very large array efficiently
by Kenosis (Priest) on Nov 26, 2013 at 18:15 UTC | |
by LanX (Saint) on Nov 26, 2013 at 18:53 UTC | |
by LanX (Saint) on Nov 27, 2013 at 01:21 UTC | |
by BrowserUk (Patriarch) on Nov 26, 2013 at 20:00 UTC | |
by BrowserUk (Patriarch) on Nov 26, 2013 at 20:34 UTC | |
by BrowserUk (Patriarch) on Nov 26, 2013 at 19:49 UTC |
In Section
Seekers of Perl Wisdom