Re: Question about Axiom

Jean-Paul Calderone <[email protected]> Sun, 25 Dec 2005 18:35:20 -0500
Newsgroups gmane.comp.python.quotient.dev
Message-ID <20051225233520.1217.204168326.divmod.quotient.8218@ohm>
On Sun, 25 Dec 2005 15:31:46 +0100 (CET), [email protected] wrote:
>Hello,
>
>I've spent some time to investigate Axiom (I'm neebie). I Found it quite
>"natural" to use it.
>
>I've well read the Q&A for Axiom : http://divmod.org/trac/wiki/WhitherAtop
>
>But I would raise one question with you: The Caching
>
>By reading the code I've found that Axiom is using a caching mechanism
>(via FinalizingCache). What is strange to me is that this caching is never
>cleanup (uncache() never used). Am I correct ?

The cache uses weak references.  Objects automatically fall out of it as soon as the application is done with them.  The finalizing cache exists primarily for correctness, rather than to improve performance.  At some point, another kind of cache will probably be added (or the finalizing cache will be enhanced) which will serve as a performance aid.

>
>Does this will not become a problem with big DB (Lot of MB in memory)?
>
>SQLite has Paging, indexes, ... and pages cache mechanism (PRAGMA
>cache_size) does all those methods are not enough ?

These are probably also valuable, but they perform caching on a different level than the Python object cache Axiom is more interested in.

Jean-Paul