-
Notifications
You must be signed in to change notification settings - Fork 10
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 tuning for building damage #516
Conversation
#517) * Added cache to store fragility matches and the inventory attributes so like structures can pull from the cache * Add caching for both new and old rule sets * Updated to handle both old and new rule parsing when building the cache
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tested and compare the building damage output of test_buildingdamage.py using the develop branch and this branch and the outputs match.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I ran all the test_xxx under building damage. Besides tornado (which has randomness), everything else looks good. Approve.
Run test_slc_buildingdamage.py for testing.
For me, the results are:
(before) 170s
(after) 99s