On winXP this code runs more than 100 times faster under 5.6.1 than under 5.8. Maybe due to PerlIO? I tried to tell PerlIO to go away with :Win32 :crlf. No help. Can someone please tell me how to make 5.8 run this code as fast as 5.6.1
$| = 1; undef $/; # or not if slurping to array. my $file; my @file; my $START_TIME = time; my $filename = 'C:\Documents and Settings\ron\My Documents\FGwing\new +_rptgen\DATA\run001\ENG_mod.262-08_41_43'; # substitute your own big +file open (FILE, "$filename") or die "can't open $filename"; $file = <FILE>; # or @file= <FILE>; sub END{ my $END_TIME = time; my $RUN_TIME = $END_TIME - $START_TIME; print STDOUT "\n\n Phew, that took $RUN_TIME seconds.\n\n"; }

In reply to 5.8 slowed relaitve to 5.6.1 (by PerlIO?) by ronh

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.