Well the current benchmarks are in (if I did it right :P )

Update: added Zaxos code.
Benchmark: timing 100000 iterations of jeffa, zaxo, original, particle +, prakash... jeffa: 7 wallclock secs ( 6.36 usr + 0.00 sys = 6.36 CPU) @ 15 +725.74/s (n=100000) zaxo: 6 wallclock secs ( 5.15 usr + 0.00 sys = 5.15 CPU) @ 194 +28.79/s (n=100000) original: 4 wallclock secs ( 3.98 usr + 0.00 sys = 3.98 CPU) @ 25 +150.91/s (n=100000) particle: 4 wallclock secs ( 3.83 usr + 0.00 sys = 3.83 CPU) @ 26 +136.96/s (n=100000) prakash: 4 wallclock secs ( 3.62 usr + 0.00 sys = 3.62 CPU) @ 27 +654.87/s (n=100000)
So prakash is still in the lead :). I had to modify Zaxos code slightly to make a local copy of the array passed as its use of shift is destructive (so calling it more than once wasn't originally possible).

In reply to Re: Remove unique elements from a list of lists by simon.proctor
in thread Remove unique elements from a list of lists by simon.proctor

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.