Code Monkey home page Code Monkey logo

namespace-clean-xs's Introduction

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) alternative for namespace::clean.
    namespace::clean spends approximately 1ms per module, so it can
    significantly impact startup time for a large codebase. This module
    tries to be a drop-in replacement for it.

    See namespace::clean for a workflow description/usage examples.

COMPABILITY
    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.

    Since version 0.27 namespace::clean allows you to clean a single package
    twice. This behaviour is not supported yet.

    While all methods from namespace::clean are implemented, individual
    functions have the following differences:

    "import"
        Will croak on unrecognized options.

    "unimport"
        Will croak on unrecognized options.

    "get_class_store"
        Structure of the returned hash is the same, but it has nothing to do
        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.

    "get_functions"
        In the returned hash function stubs and constants are not expanded.
        You can't count on calling values in it as functions unless you
        access corresponding glob first (and loose any memory savings in the
        process).

SEE ALSO
    *   namespace::clean

    *   namespace::clean::xs::all

COPYRIGHT AND LICENSE
    Copyright (C) 2016-2017 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.

namespace-clean-xs's People

Contributors

dur-randir avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.