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 its accessed. Factoring a schema is usally fast anyway. I.e. in an average Plone Site a, ATDocuemnts schema is accessed per request 80 times. So caching it makes sense anyway, even if a single call is fast. With schematuning ATDocument in PythonProfiler (which linear slows down whole Python) came down from 1.518s down to 0.084s for Schema calls. This makes it roughly 18 times faster.

History

Roche Compaan and Hedley Ross 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 Ross (tests, better cache-key, invalidation)

  • Jens Klein (initial code, maintainer) <dev@bluedynamics.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.1.tar.gz (9.6 kB view details)

Uploaded Source

File details

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

File metadata

File hashes

Hashes for archetypes.schematuning-1.1.tar.gz
Algorithm Hash digest
SHA256 fee3880e7f0184ea8b486f7e8f8cb6129a595bb3bc29a252af46d454b3636193
MD5 c42263c2b43cb28ca6f388256b4da8b8
BLAKE2b-256 d5fe691b920510334b45bfec388d5130944f25da7b088e94c5ba0a8243e42910

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