Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?

Comment on

( #3333=superdoc: print w/replies, xml ) Need Help??
> Thus, the timing produced by the module incorporate three levels of subroutine call, only one of which has been partially negated. This demonstrates the naivety of the author(s).

WOW really? Oh man, thank you for telling me!

Well, unfortunately I've never done this.

> If you write the benchmark in 1064279 like this:

Which is Kenosis code, not the code I wrote.

(playing tricks again you funny little bastard? Ha ha ha ... yawn)

The approach of hashes with

{ name1 => sub { }, name2 => sub { }, }

is well known. but it's sufficiently different to easily introduce errors.

Especially when copying existing code, things like comma-separation, indentation, positions of names, ... (see also Eily's comment).

Secondly and more importantly the need to benchmark often comes if code has already been written and experimenting starts with cloned forms of

sub do_something { # not fast enough }

then called

sub do_something_old { ... }


sub do_something_1 { ... }

And I don't think I'm alone, two other monks already asked about filtering some subs out of a package and/or ignoring imported subs.

Now if you don't like a convenience module to facilitate this kind of benchmarking, better don't use it.

Cheers Rolf

( addicted to the Perl Programming Language)

In reply to Re^2: RFC extending to facilitate CODEHASHREF by LanX
in thread RFC extending to facilitate CODEHASHREF by LanX

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, 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, 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.
  • Log In?

    What's my password?
    Create A New User
    and all is quiet...

    How do I use this? | Other CB clients
    Other Users?
    Others examining the Monastery: (7)
    As of 2018-05-25 17:35 GMT
    Find Nodes?
      Voting Booth?