On Tue, Aug 10, 2010 at 11:43, Ron Bergin <[email protected]> wrote:
> While doing some benchmark testing on both Windows and Linux, the
> results of the exact same code was reversed.  A slight difference in
> the percentages is understandable, but I fail to see why the results
> would be reversed.  Could someone shed some light on this issue?
snip
>    my $BDtsSQLdate = "$Byear$Bmon$Bmday$Bhour$Bmin$Bsec";
snip

I seem to recall reading something on p5p recently about string
concatenations being slower on Win32 machines for some reason.  Since
that line is really six string concatenations, you may be better off
using join:

my $BDtsSQLdate = join "", $Byear, $Bmon, $Bmday, $Bhour, $Bmin, $Bsec;

You might also try profiling the slow subroutine with Devel::NYTProf
to find what is slower between Linux and Win32.



-- 
Chas. Owens
wonkden.net
The most important skill a programmer can have is the ability to read.

--
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
http://learn.perl.org/


Reply via email to