Subject: | global change of $| (OUTPUT_AUTOFLUSH) |
You change the output autoflush for the whole project.
This makes any output for all handles slow.
See line 66:
$| = 1;
XSLoader::load( 'UNIVERSAL::ref', $UNIVERSAL::ref::VERSION );
please change to:
{
local $| = 1;
XSLoader::load( 'UNIVERSAL::ref', $UNIVERSAL::ref::VERSION );
}