Skip to main content

More Speed with cached Archetypes Schemas.

Project description

This package speeds up Archetypes Schemas and is a patch for Products.Archetypes.

It uses plone.memoize to cache Archetypes Schemas instead of factoring and modifying them every time they’re accessed. Factoring a schema is usually fast but in an average Plone Site, the ATDocument’s schema, for example, is accessed about 80 times per request. So caching it still makes sense, even if a single call is fast. With schematuning, ATDocument in PythonProfiler (which linearly slows down whole Python) came down from 1.518s down to 0.084s for Schema calls. This makes it roughly 18 times faster.

History

Roché Compaan and Hedley Roos found while working on one if their projects several performance issues. One of it was the often repeated BaseObject.Schema() method. Read about it on the Mailing-List.

License

GNU General Public License, GPL

Authors

  • Hedley Roos (tests, better cache-key, invalidation)

  • Jens Klein (initial code, maintainer) <dev@bluedynamics.com>

Contributors

JC Brand <jc@opkode.com>

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

archetypes.schematuning-1.2.tar.gz (20.9 kB view details)

Uploaded Source

Built Distribution

archetypes.schematuning-1.2-py2.4.egg (53.0 kB view details)

Uploaded Source

File details

Details for the file archetypes.schematuning-1.2.tar.gz.

File metadata

File hashes

Hashes for archetypes.schematuning-1.2.tar.gz
Algorithm Hash digest
SHA256 7b9fa8bd2c47fa2741ca706c48294af549bc00485e485158c00b319e87b1fe7c
MD5 3f9cbe5de0ae4760ccc6544d159c8a4b
BLAKE2b-256 79e32895ad393aa3b0132069c96409529f105ebdb9903919a9f28f2fdef5762d

See more details on using hashes here.

File details

Details for the file archetypes.schematuning-1.2-py2.4.egg.

File metadata

File hashes

Hashes for archetypes.schematuning-1.2-py2.4.egg
Algorithm Hash digest
SHA256 6adb1ce7a17e0b1065fd3527c9a05053befab1f7c53609a2edcda5f80946e294
MD5 d5aba495da98cc174e57dade6db8b785
BLAKE2b-256 7bb8cf6c77b777fb2e1cd041132d92a1963e5307f2b154fb0cff084ddeb2c547

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page