-
Notifications
You must be signed in to change notification settings - Fork 0
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 analysis #23
Comments
After #24, most time is spent in common_checks_context from lib-cove, so not an issue for this repo to fix. |
Just loading 50MB JSON takes a lot of memory:
|
|
Added Before (when using orjson, bytes need to be decoded to string to be printed): After:
|
After OpenDataServices/lib-cove#60, |
After OpenDataServices/lib-cove#61 and OpenDataServices/lib-cove#62, |
The script has a baseline of 53MB,
|
Got time down to:
Originally:
|
Closing this issue. Memory usage was halved, and running time is two-thirds faster. In an above comment, PRs are open in https://github.com/OpenDataServices/lib-cove/pulls/jpmckinney Other follow-up issues are: |
Related earlier issue: OpenDataServices/cove#579, which links to this document: https://docs.google.com/document/d/1DwFGVLjqTD3yfWg-7zKGsl4X5L2B2R7yAJkGCyoBLUA/edit |
This has various preformance improvements open-contracting/lib-cove-oc4ids#23
To address issues from CRM-6536.
data.json
is attached to that issue.I ran:
time
's output is:mprof plot
output:Going to use cProfile to identify methods to add the
@profile
decorator to:As documented at https://ocp-software-handbook.readthedocs.io/en/latest/python/performance.html
The text was updated successfully, but these errors were encountered: