Skip Menu |
 

This queue is for tickets about the Scalar-List-Utils CPAN distribution.

Report information
The Basics
Id: 13408
Status: resolved
Priority: 0/
Queue: Scalar-List-Utils

People
Owner: Nobody in particular
Requestors: at [...] altlinux.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: 1.17
Fixed in: (no value)



Content-Type: text/plain
Content-Disposition: inline
Content-Transfer-Encoding: binary
MIME-Version: 1.0
X-Mailer: MIME-tools 5.415 (Entity 5.415)
Subject: support for XSLoader
X-RT-Original-Encoding: iso-8859-1
Content-Length: 908
Download (untitled) / with headers
text/plain 908b
Please add support for XSLoader -- it's noticeably faster than DynaLoader. (I noticed that File::Find uses Scalar::Util, so loading File::Find I end up loading DynaLoader.) --- Scalar-List-Utils-1.17/lib/List/Util.pm- 2005-05-23 18:06:40 +0400 +++ Scalar-List-Utils-1.17/lib/List/Util.pm 2005-06-25 12:03:21 +0400 @@ -18,10 +18,15 @@ eval { # PERL_DL_NONLAZY must be false, or any errors in loading will just # cause the perl code to be tested local $ENV{PERL_DL_NONLAZY} = 0 if $ENV{PERL_DL_NONLAZY}; - require DynaLoader; - local @ISA = qw(DynaLoader); - bootstrap List::Util $XS_VERSION; - 1 + eval { + require XSLoader; + XSLoader::load('List::Util', $XS_VERSION); + 1; + } or do { + require DynaLoader; + local @ISA = qw(DynaLoader); + bootstrap List::Util $XS_VERSION; + }; }; eval <<'ESQ' unless defined &reduce; End of patch -- Alexey Tourbin ALT Linux Team
Content-Type: text/plain
Content-Disposition: inline
Content-Transfer-Encoding: binary
MIME-Version: 1.0
X-Mailer: MIME-tools 5.418 (Entity 5.418)
X-RT-Original-Encoding: iso-8859-1
Content-Length: 54
Support for XSLoader will be in Scalar-List-Utils 1.18


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.