Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
namespace::clean::xs(3User Contributed Perl Documentatinamespace::clean::xs(3)

NAME
       namespace::clean::xs - Keep imports and functions out of	your
       namespace, in XS

SYNOPSIS
	   use namespace::clean::xs; # be lean and mean

DESCRIPTION
       This module is a	much faster (~30x) version of namespace::clean module.
       namespace::clean	spends approximately 1ms per module, so	it can
       significantly impact startup time for a large codebase. This module is
       designed	to be a	drop-in	replacement for	it.

       See namespace::clean for	the complete description of this module's
       logic.

COMPABILITY
       All methods from	namespace::clean are implemented in
       namespace::clean::xs, but individual functions have the following
       differences:

       "get_class_store"
	   Structure of	the returned hash is the same, but it has nothing in
	   common with the internal storage. Modifications of it are in	vain.

	   While namespace::clean saves	this info forever, this	module deletes
	   it after namespace cleanup is done (as it never happens for a
	   second time,	like the original module), so you can see valid	data
	   only	for a short time.

       "get_functions"
	   In the returned hash	function stubs and constants are not expanded.
	   While you can still call the	latter and can't call the former, you
	   may get different error messages.

       "unimport"
	   Will	croak on unrecognized options.

       "import"
	   Will	croak on unrecognized options.

	   This	module tries to	minimize memory	impact after it's usage, so it
	   won't expand	constant/stub functions	to full	globs. It also removes
	   symbols without data	from the package completely.

SEE ALSO
       o   namespace::clean

       o   namespace::clean::xs::all

COPYRIGHT AND LICENSE
       Copyright (C) 2016 by Sergey Aleynikov

       This library is free software; you can redistribute it and/or modify it
       under the same terms as Perl itself, either Perl	version	5.10.1 or, at
       your option, any	later version of Perl 5	you may	have available.

perl v5.24.1			  2016-06-09	       namespace::clean::xs(3)

NAME | SYNOPSIS | DESCRIPTION | COMPABILITY | SEE ALSO | COPYRIGHT AND LICENSE

Want to link to this manual page? Use this URL:
<https://www.freebsd.org/cgi/man.cgi?query=namespace::clean::xs&sektion=3&manpath=FreeBSD+12.0-RELEASE+and+Ports>

home | help