new pydo introspection feature
Jacob Smullyan <[email protected]> Wed, 1 Jun 2005 17:04:22 -0400
| Newsgroups | gmane.comp.web.skunkweb |
|---|---|
| Message-ID | <[email protected]> |
In order to mitigate the performance hit of the table introspection features in PyDO2, I've added a simple disk cache implementation that can be turned on by setting MyObj.guesscache to True or to a GuessCache instance. This way, introspection will only need to be done in one process, and later processes importing the class just need to load a pickle. To clear the cache, you just delete the pickle (1 pickle file per class). This makes introspection quite a bit more palatable to me. js -- Jacob Smullyan
signature.asc
(application/pgp-signature, 189 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (GNU/Linux) iD8DBQFCniLWuqamFyFXXLIRAq/XAJ0egITNZaxtUqtXBi744QBllpM7SgCgyuY8 WQPfWwGf8NrAvQRicSlik00= =/JJL -----END PGP SIGNATURE-----