SPUG: print statement taking ridiculously long
steve at baylis.org
Tue Jul 23 10:55:06 PDT 2013
Are you sure the problem is the version of Perl and not something hardware
related? You say it runs much faster in older versions of Perl on lesser
hardware, what about older versions of Perl on the same hardware?
time head -c 60000000 /dev/urandom > file
If that's relatively fast then you're issue is likely in Perl. If that's
also very slow then you likely have something going on in your storage tier
with that particular hardware.
On Tue, Jul 23, 2013 at 10:39 AM, Fred Morris <m3047 at m3047.net> wrote:
> On Tuesday 23 July 2013 10:32, Andrew Sweger wrote:
> > I'm guessing that $big_string is built up by appending/concatenating
> > repeatedly.
> How did you guess? ;-)
> Yes, the wonders of the Fibonacci series... We changed that before
> that the print statement was where the real problem was. It was actually
> stringifying XML::Generator output.
> Hrmmm... come to think of it I wonder if $big_string is *really* a string,
> is really that XML::Generator output object which behaves like a string?
> Seattle Perl Users Group Mailing List
> POST TO: spug-list at pm.org
> SUBSCRIPTION: http://mail.pm.org/mailman/listinfo/spug-list
> MEETINGS: 3rd Tuesdays
> WEB PAGE: http://seattleperl.org/
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the spug-list