You are here: Foswiki>Tasks Web>Item617 (03 Jan 2009, SvenDowideit)Edit Attach

Item617: "extremely slow performance for certain critical operations" warning is broken for Perl >5.008009

pencil
Priority: Normal
Current State: Closed
Released In: 1.0.0
Target Release: major
Applies To: Engine
Component: CGISetup.pm
Branches:
Reported By: Foswiki:Main.MarkusUeberall
Waiting For:
Last Change By: SvenDowideit
Using Perl v5.10.x, configure will always display the following warning:

This version of Perl is likely to exhibit extremely slow performance for certain critical operations.
Please consider recompiling Perl. For more information, see
http://twiki.org/cgi-bin/view/Codev/PerlOnRedHatIsSlow
https://bugzilla.redhat.com/show_bug.cgi?id=196836 and/or
http://blog.vipul.net/2008/08/24/redhat-perl-what-a-tragedy/
http://lists.scsys.co.uk/pipermail/dbix-class/2007-October/005119.html.

This is due to a rather obfuscated part of code in Foswiki/Configure/Checkers/CGISetup.pm, lines 112-116:
        sub _possibly_has_bad_overload_performance {
            return $] < 5.008009 && !_has_bug_34925();
        }

        if ( !_possibly_has_bad_overload_performance() ) { (warning as mentioned above) }

The second negation in the last line is apparently wrong--not only is it confusing to issue a warning if the installation in question is not possibly exhibiting bad performance, but this test will fail for Perl >5.008009 (i.e., all current distros--that's why I set this to priority "normal" instead of "low").

(According to Olivier, _has_bug_34925 should also rather be called _hasnt_bug_34925)

Update: Kenneth suggested to remove the entire check and add a note in the documentation as (a) RedHat issued an update in the meantime and (b) his tests before/after that patch didn't show any differences for a Foswiki installation using the default plugins. Therefore, we shouldn't spend that much time to fix the warning as it shouldn't occur in the first place nowadays...

removed - I have to trust that you guys know whats best for RH users - I don't use RH often enough.

ItemTemplate edit

Summary "extremely slow performance for certain critical operations" warning is broken for Perl >5.008009
ReportedBy Foswiki:Main.MarkusUeberall
Codebase 1.0.0 beta3, 1.0.0 beta2
SVN Range TWiki-4.2.3, Wed, 06 Aug 2008, build 17396
AppliesTo Engine
Component CGISetup.pm
Priority Normal
CurrentState Closed
WaitingFor
Checkins distro:4f67ad8289a9
TargetRelease major
ReleasedIn 1.0.0
Topic revision: r4 - 03 Jan 2009, SvenDowideit
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy