(Pablo S) said:
>Run from bash on 2 redhat systems with the same hardware:
>
>#!/usr/bin/perl
>$start=time;
>my $i=20000000;
>
>while ($i) {
> $i--;
>}
>print "Finished!". (time - $start);
>
>
>Stock redhat 7.3: 3 seconds (5.6.1)
>Stock FC2: 37 seconds (5.8.3)
I may be completely beating the bushes here, but could you be seeing
something related to use of locales? Also, it might be a good idea to
install current patches to the FC2 system (if not done already).
Old RedHats (pre-9.0) used to run using some locale with 8-bit charset.
Later releases default to using UTF-8 character set. What was visible
at least with RH9 was a huge slowdown of 'grep' (roughly half the speed),
and the speed was easily restored by changing LC_CTYPE to a 8-bit
character set.
--
Wolf a.k.a. Juha Laiho Espoo, Finland
(GC 3.0) GIT d- s+: a C++ ULSH++++$ P++@ L+++ E- W+$@ N++ !K w !O !M V
PS(+) PE Y+ PGP(+) t- 5 !X R !tv b+ !DI D G e+ h---- r+++ y++++
"...cancel my subscription to the resurrection!" (Jim Morrison)