Memoize
Memoize - Make functions faster by trading space for time. SYNOPSIS # This is the documentation for Memoize 1.01 use Memoize; memoize(slow_function); slow_function(arguments); # Is faster than it was before This is normally all you need to know. However, many options are available:...
Platforms: *nix
License: Freeware | Size: 47.1 KB | Download (90): Memoize Download |
This simple decorator is different to other memoize decorators in that it will only cache results for a period of time. It also provides a simple method of cleaning the cache of old entries via the .collect method. This will help prevent excessive or needless memory consumption.
Platforms: Windows, Mac, *nix, Python, BSD Solaris
License: Freeware | Download (51): Memoize Decorator with Timeout Download |
This script tries to be a safer and faster memoize decorator, it works with mutable types and with keyword args too. The code comes from many different versions found around. This code isn't much tested yet, so it must be used with care.
Platforms: Windows, Mac, *nix, Python, BSD Solaris
License: Freeware | Download (55): Another memoize Download |
This script contains many recipes to memoize functions. Using this script you can cache object creation, i.e. __new__ and __init__ methods are called only when n.e. __newt;br />
Platforms: Windows, Mac, *nix, Python, BSD Solaris
License: Freeware | Download (50): Caching object creation Download |
Joblib is a set of tools to provide lightweight pipelining in Python. In particular, joblib offers: 1. transparent disk-caching of the output values and lazy re-evaluation (memoize pattern) 2. easy simple parallel computing 3. logging and tracing of the execution Joblib is optimized to be...
Platforms: *nix
License: Freeware | Size: 235.52 KB | Download (46): Joblib Download |
Object::Realize::Later is a Perl module with delayed creation of objects. SYNOPSIS package MyLazyObject; use Object::Realize::Later becomes => MyRealObject, realize => load; The Object::Realize::Later class helps with implementing transparent on demand realization of object data. This...
Platforms: *nix
License: Freeware | Size: 10.24 KB | Download (88): Object::Realize::Later Download |
Rats! is an easily extensible parser generator for C-like languages; though currently it only generates parsers in Java. Rats! project has been explicitly designed so that grammars are concise and easily modifiable. To this end, Rats! - organizes grammars into modules, - builds on parsing...
Platforms: *nix
License: Freeware | Size: 849.92 KB | Download (91): Rats! Download |
This class provides thunk-like behavior in standard Python. It allows a function to be evaluated only when needed, and the return value cached, or memoized, until explicitly deleted.
Platforms: Windows, Mac, *nix, Python, BSD Solaris
License: Freeware | Download (54): A lazy, memoized attribute space Download |
This is my personal collection of snippets that I use in multiple projects. Each one feels a bit to small to merit it's own library. So what does it include? * memoize decorator (caching) * a storage class wrapping a dict. * unittest assert functions. * Functions for handling large JSON...
Platforms: *nix
License: Freeware | Size: 10.24 KB | Download (39): hcs_utils Download |
Math::Symbolic::Custom::Transformation is a Perl extension to the Math::Symbolic module. You're assumed to be remotely familiar with that module throughout the documentation. This package implements transformations of Math::Symbolic trees using Math::Symbolic trees. I'll try to explain what this...
Platforms: *nix
License: Freeware | Size: 10.24 KB | Download (32): Math::Symbolic::Custom::Transformation Download |