Subject: | Switch Unicode::Collate to XSLoader |
p5p has recently switched all CORE modules to XSLoader
for performance reasons during the 5.27 development cycle.
Note, XSLoader is a problem for Perl versions earlier than 5.6,
which at this point can get alternate support, as mentioned
in the upstream case.
Upstream-Case: RT #132080
Upstream-URL: https://rt.perl.org/SelfService/Display.html?id=132080
Smoked the distro on travis:
https://travis-ci.org/atoomic/Unicode-Collate/builds/302103480
Note: travis do not support by default perl 5.6
____
Subject: | 0001-Switch-Unicode-Collate-to-XSLoader.patch |
From 5af395aa5f3257c5c2995be5e53f1dbf9f331d12 Mon Sep 17 00:00:00 2001
From: Nicolas R <atoomic@cpan.org>
Date: Tue, 14 Nov 2017 13:24:44 -0600
Subject: [PATCH] Switch Unicode::Collate to XSLoader
p5p has recently switched all CORE modules to XSLoader
for performance reasons during the 5.27 development cycle.
Note, XSLoader is a problem for Perl versions earlier than 5.6,
which at this point can get alternate support, as mentioned
in the upstream case.
Upstream-Case: RT #132080
Upstream-URL: https://rt.perl.org/SelfService/Display.html?id=132080
---
Collate.pm | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/Collate.pm b/Collate.pm
index e572e7c..414b50b 100644
--- a/Collate.pm
+++ b/Collate.pm
@@ -21,9 +21,8 @@ our $VERSION = '1.23';
our $PACKAGE = __PACKAGE__;
### begin XS only ###
-require DynaLoader;
-our @ISA = qw(DynaLoader);
-bootstrap Unicode::Collate $VERSION;
+use XSLoader ();
+XSLoader::load( 'Unicode::Collate', $VERSION );
### end XS only ###
my @Path = qw(Unicode Collate);
--
2.13.6 (Apple Git-96)