B::XSUB::Dumber - B::OPCheck demo for microoptimizing XSUB invocation.
use Scalar::Util qw(blessed reftype); { use B::XSUB::Dumber qw(blessed reftype); reftype($thingy); }
Certain XSUBs don't need lots of fluff from pp_entersub to be invoked since they don't do anything fancy. For XSUBs fitting this description this module lexically replaces the implementation of the entersub ops calling them with a much simpler version that doesn't do anything except invoke the XSUB function pointer from the CV.
This is meant mostly as a demo of the sort of thing B::OPCheck lets you do, so please don't take it too seriously or rely on it in any way.
This module is maintained using Darcs. You can get the latest version from http://nothingmuch.woobling.org/code, and use darcs send to commit changes.
darcs send
Yuval Kogman <nothingmuch@woobling.org>
Copyright (c) 2008 Yuval Kogman. All rights reserved This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install B::XSUB::Dumber, copy and paste the appropriate command in to your terminal.
cpanm
cpanm B::XSUB::Dumber
CPAN shell
perl -MCPAN -e shell install B::XSUB::Dumber
For more information on module installation, please visit the detailed CPAN module installation guide.