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

Major speedup to merging of files #29

Merged
merged 1 commit into from
Sep 15, 2019
Merged

Conversation

arichardson
Copy link
Contributor

Commit 6db59f3 added a call to
update_statistics() to add_testcase(). When merging files, add_testcase()
is called many times and every call to update_statistics will walk the
entire XML tree again. There is no need to do this on every add_testcase().
Instead update the statistics once after the file has been merged.
When merging large JUnit XML files, this reduces the merge time from
many minutes to less than one second.

Commit 6db59f3 added a call to
update_statistics() to add_testcase(). When merging files, add_testcase()
is called many times and every call to update_statistics will walk the
entire XML tree again. There is no need to do this on every add_testcase().
Instead update the statistics once after the file has been merged.
When merging large JUnit XML files, this reduces the merge time from
many minutes to less than one second.
@arichardson
Copy link
Contributor Author

These CI failures seem like problems with the CI setup rather than being caused by my pull request.

@weiwei weiwei merged commit e9215f0 into weiwei:master Sep 15, 2019
@weiwei
Copy link
Owner

weiwei commented Sep 15, 2019

@arichardson Thanks for the PR!

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.5%) to 99.036% when pulling 54e4825 on arichardson:speedup-merge into 2a1593c on gastlygem:master.

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

Successfully merging this pull request may close these issues.

None yet

3 participants