optimize - Pragma for hinting optimizations on variables


optimize documentation  | view source Contained in the optimize distribution.

Index


NAME

Top

optimize - Pragma for hinting optimizations on variables

SYNOPSIS

Top

    use optimize;
    my $int : optimize(int);
    $int = 1.5;
    $int += 1;
    if($int == 2) { print "$int is integerized" }

    #Following will call this callback with the op
    #as the argument if you are in the specified package
    #see types.pm how it is used from import and unimport
    optimize->register(\&callback, $package);

    #and reverse it
    optimize->unregister($package);

DESCRIPTION

Top

optimize allows you to use attributes to turn on optimizations. It works as a framework for different optimizations.

BUGS

Top

optimize usually rewrites the optree, weird and funky things can happen, different optimizations will be in a different state of readyness

AUTHOR

Top

Arthur Bergman <abergman at cpan.org>

SEE ALSO

Top

optimize::int B::Generate


optimize documentation  | view source Contained in the optimize distribution.