Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Performance: Schema cache speedup. #114

Merged
merged 5 commits into from
Oct 2, 2019

Conversation

jensens
Copy link
Sponsor Member

@jensens jensens commented Oct 1, 2019

  1. in schema cache, By first checking for string, the providedBy can be avoided. Since this function is called really often it makes a difference. According to my profiling its speeds up plone/dexterity/schema.py function decorator by factor ~1.54x.
  2. in schema cache, the FTI itself can be cached on the request. Using the cache is twice as fast as the lookup itself.
  3. fix travis setup to test 5.0 to 5.2 and py2/py3
  4. remove 2 deprecation warnings from test

Tthis is a part of #113, split to not to do too much at once.

@mister-roboto

This comment has been minimized.

@jensens
Copy link
Sponsor Member Author

jensens commented Oct 1, 2019

@jenkins-plone-org please run jobs

@jensens jensens force-pushed the jensens-performance-schema-cache-pure branch from 5bbb3f6 to 290b740 Compare October 1, 2019 14:34
@jensens
Copy link
Sponsor Member Author

jensens commented Oct 1, 2019

@jenkins-plone-org please run jobs

1 similar comment
@jensens
Copy link
Sponsor Member Author

jensens commented Oct 1, 2019

@jenkins-plone-org please run jobs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants