Amos Shapira
2008-Mar-07 05:01 UTC
[CentOS] Perl-5.8.8-10 "use overload" backport breaks performance?
Hello, There is text in the documentation of Class::DBIx as follows: There is a problem with slow performance of certain DBIx::Class operations in perl-5.8.8-10 and later on RedHat and related systems, due to a bad backport of a "use overload" related bug. The problem is in the Perl binary itself, not in DBIx::Class. If your system has this problem, you will see a warning on startup, with some options as to what to do about it. (from http://search.cpan.org/~ash/DBIx-Class-0.08010/lib/DBIx/Class/Manual/Intro.pod#Problems_on_RHEL5/CentOS5) and indeed when I run a test I get: # perl -MDBIx::Class -e1 WARNING: DBIx::Class::StartupCheck: This version of Perl is likely to exhibit extremely slow performance for certain critical operations. Please consider recompiling Perl. For more information, see https://bugzilla.redhat.com/show_bug.cgi?id=196836 and/or http://lists.scsys.co.uk/pipermail/dbix-class/2007-October/005119.html. You can suppress this message by setting DBIC_NO_WARN_BAD_PERL=1 in your environment. Now it looks like the current solution is to compile a package by myself. Is there a way I can avoid this and just grab a fixed or older working version from some known repository? This is on a CentOS 5 with all updated packages ("yum update" doesn't update anything), rpmforge is enabled in case this matters. Thanks, --Amos