XSLoader::load cares about the package it is called from. If it is a
different package from what you are trying to load, it falls back to
loading and using DynaLoader.
Move the load call to be in the mro package as it should be, so that it
doesn't trigger needless extra load.
# mro.pm versions < 1.00 reserved for MRO::Compat
# for partial back-compat to 5.[68].x
-our $VERSION = '1.20';
+our $VERSION = '1.21';
+
+require XSLoader;
+XSLoader::load('mro');
sub import {
mro::set_mro(scalar(caller), $_[1]) if $_[1];
return;
}
-require XSLoader;
-XSLoader::load('mro');
-
1;
__END__