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

Qualification tool: fix performance regression #2974

Merged
merged 2 commits into from
Jul 20, 2021

Conversation

tgravescs
Copy link
Collaborator

@tgravescs tgravescs commented Jul 20, 2021

fixes #2972

It turns out this while loop is 4-5x slower. One particular event log took about 4.5 seconds to process before and when we switched to use while it took slower to 20 seconds.

In this case we use find{} instead to loop through all elements until we hit an event that says we are done. The done is really only used for the app filtering logic when we want to stop processing the event log after the app start event.

Signed-off-by: Thomas Graves tgraves@nvidia.com

@tgravescs tgravescs added this to the July 19 - July 30 milestone Jul 20, 2021
@tgravescs tgravescs self-assigned this Jul 20, 2021
@tgravescs tgravescs changed the title Qualification tool: Change event process loop to be find instead of while which is slow Qualification tool: fix performance regression Jul 20, 2021
@tgravescs
Copy link
Collaborator Author

build

@tgravescs
Copy link
Collaborator Author

integration test failed which has nothing to do with this change since this is in tools, even at that doesn't show what failed.

@tgravescs
Copy link
Collaborator Author

build

@tgravescs tgravescs merged commit f6fa050 into NVIDIA:branch-21.08 Jul 20, 2021
@tgravescs tgravescs deleted the fixqualspeed branch July 20, 2021 21:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] When using timeout option(-t) of qualification tool, it does not print anything in output after timeout.
2 participants