3 | 3 |
Maintainer: Debian Perl Group <pkg-perl-maintainers@lists.alioth.debian.org>
|
4 | 4 |
Uploaders: Christopher Hoskin <christopher.hoskin@gmail.com>
|
5 | 5 |
Build-Depends: debhelper (>= 9)
|
6 | |
Build-Depends-Indep: libchi-perl (>= 0.47),
|
|
6 |
Build-Depends-Indep: libchi-perl,
|
7 | 7 |
libhash-moreutils-perl,
|
8 | 8 |
libmoo-perl,
|
9 | 9 |
libtest-class-most-perl,
|
|
17 | 17 |
Package: libchi-memoize-perl
|
18 | 18 |
Architecture: all
|
19 | 19 |
Depends: ${misc:Depends}, ${perl:Depends},
|
20 | |
libchi-perl (>= 0.47),
|
|
20 |
libchi-perl,
|
21 | 21 |
libhash-moreutils-perl,
|
22 | 22 |
libmoo-perl
|
23 | |
Description: Make functions faster with memoization via CHI
|
24 | |
"`Memoizing' a function makes it faster by trading space for time. It does
|
25 | |
this by caching the return values of the function in a table. If you call the
|
26 | |
function again with the same arguments, memoize jumps in and gives you the
|
27 | |
value out of the table, instead of letting the function compute the value all
|
28 | |
over again." -- quoted from the original Memoize|Memoize
|
|
23 |
Description: memoization implementation backed by CHI
|
|
24 |
CHI::Memoize is an implementation of the memoization technique using CHI.
|
|
25 |
Memoize caches the inputs and outputs of a function, if the function is called
|
|
26 |
again with the same inputs, CHI::Memoize intervenes and provides the cached
|
|
27 |
result. For slow functions, time is saved, at the expence of space.
|
|
28 |
.
|
|
29 |
CHI::Memoize provides the same facility as Memoize|Memoize, but backed by
|
|
30 |
CHI|CHI. This means, among other things, that you can:
|
|
31 |
.
|
|
32 |
* specify expiration times (expires_in) and conditions (expire_if)
|
|
33 |
* memoize to different backends, e.g. File, Memcached, DBI, or to multilevel
|
|
34 |
caches
|
|
35 |
* handle arbitrarily complex function arguments (via CHI key serialization)
|
29 | 36 |
.
|
30 | 37 |
For a bit of history and motivation, see
|
31 | 38 |
.
|
32 | 39 |
http://www.openswartz.com/2012/05/06/memoize-revisiting-a-twelve-year-old-api
|
33 | |
/
|
34 | |
.
|
35 | |
CHI::Memoize provides the same facility as Memoize|Memoize, but backed by
|
36 | |
CHI|CHI. This means, among other things, that you can
|
37 | |
.
|
38 | |
This description was automagically extracted from the module by dh-make-perl.
|