B::XSUB::Dumber - L demo for microoptimizing XSUB invocation.


B-XSUB-Dumber documentation  | view source Contained in the B-XSUB-Dumber distribution.

Index


NAME

Top

B::XSUB::Dumber - B::OPCheck demo for microoptimizing XSUB invocation.

SYNOPSIS

Top

	use Scalar::Util qw(blessed reftype);

	{
		use B::XSUB::Dumber qw(blessed reftype);
		reftype($thingy);
	}

DESCRIPTION

Top

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.

VERSION CONTROL

Top

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.

AUTHOR

Top

Yuval Kogman <nothingmuch@woobling.org>

COPYRIGHT

Top


B-XSUB-Dumber documentation  | view source Contained in the B-XSUB-Dumber distribution.