Skip to content
This repository has been archived by the owner on Dec 7, 2022. It is now read-only.

Skarmark applicability perf improvements #578

Merged
merged 9 commits into from Aug 26, 2013

Conversation

skarmark
Copy link
Contributor

  1. updated get_repo_units conduit method to request only the required unit association data resulting in 65% performance improvement for applicability and much better memory footprint.
  2. performance improvements to ApplicabilityRegenerationManager to avoid multiple calls per consumer for retrieving profiles and bound repos.
  3. updated repo applicability regeneration to check only existing RepoProfileApplicability objects instead of creating new objects when needed.

Sayli Karmarkar added 4 commits August 22, 2013 16:32
…nit association data

resulting in 65% peformance improvement for applicability and much better memory footprint
… multiple calls per consumer for retrieving profiles and bound repos.
…rofileApplicability objects instead of creating new objects when needed
@ghost ghost assigned mhrivnak Aug 23, 2013
for repo_binding in all_repo_bindings:
if unit_profile['consumer_id'] == repo_binding['consumer_id']:
# Check if applicability for given profile_hash and bound_repo_id already exists
existing_applicability = ApplicabilityRegenerationManager._get_existing_applicability(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this will still end up doing lots of database queries regardless of how few profiles there are. Comments will appear above with additional suggestions.

Sayli Karmarkar added 3 commits August 23, 2013 13:38
…te duplicate profiles with same hash corresponding to a given repository. This results in an improved performance, especially when there are a lot of same consumer profiles.
@mhrivnak
Copy link
Contributor

Looks good. One last request: can we wrap all of this to about 110 characters? Lots of lines are too long to fit in the github display.

skarmark pushed a commit that referenced this pull request Aug 26, 2013
…ments

Skarmark applicability perf improvements
@skarmark skarmark merged commit 5e12f51 into master Aug 26, 2013
@skarmark skarmark deleted the skarmark-applicability-perf-improvements branch August 26, 2013 20:19
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
2 participants