This makes me wonder if I better keep using my own routines to get my parameters etc instead of using CPAN modules. Do these modules take their entire size as overhead or only the subroutines which get executed? I've also noticed a few weird things with a package I've made slurping more CPU (and memory) than it should take; I only use XML::Twig and XML::Simple in that package (for backwards compatibility for now)

Visual::XML::BEGIN is which I really wonder about ; only 3 calls and 17.5 time for executing these; while its merely a package of 3 routines made as proxy to be backwards compatible using XML::Twig with XML::Simple calls...

%Time ExclSec CumulS #Calls sec/call Csec/c  Name
 42.0   0.120  0.188     16   0.0075 0.0118  Visual::XML::Podcast::BEGIN
 17.5   0.050  0.278     10   0.0050 0.0278  main::BEGIN
 17.5   0.050  0.060      3   0.0166 0.0199  Visual::XML::BEGIN
 3.50   0.010  0.010     47   0.0002 0.0002  strict::bits
 3.50   0.010  0.010      1   0.0100 0.0100  utf8::AUTOLOAD
 3.50   0.010  0.010     29   0.0003 0.0003  XML::Twig::BEGIN
 3.50   0.010  0.010      3   0.0033 0.0033  LWP::Simple::BEGIN
 3.50   0.010  0.010      1   0.0100 0.0100  Visual::XML::Podcast::itunes::BEGIN
 3.50   0.010  0.010      7   0.0014 0.0014  IO::File::BEGIN
 0.00   0.000 -0.000     31   0.0000      -  strict::import
 0.00   0.000 -0.000      1   0.0000      -  vars::BEGIN
 0.00   0.000 -0.000      1   0.0000      -  warnings::BEGIN
 0.00   0.000 -0.000      3   0.0000      -  warnings::register::import
 0.00   0.000 -0.000      6   0.0000      -  warnings::register::mkMask
 0.00   0.000 -0.000     29   0.0000      -  vars::import

In reply to Re^4: Why can code be so slow? by freakingwildchild
in thread Why can code be so slow? by freakingwildchild

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.