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

implement custom copy for avail dict in pkg #18325

Merged
merged 3 commits into from
Sep 5, 2016
Merged

Conversation

KristofferC
Copy link
Sponsor Member

@KristofferC KristofferC commented Sep 1, 2016

Shaves off ~0.3 seconds from Pkg.resolve()

@KristofferC KristofferC added performance Must go faster domain:packages Package management and loading needs tests Unit tests are required for this change labels Sep 1, 2016
@KristofferC KristofferC removed the needs tests Unit tests are required for this change label Sep 1, 2016
@KristofferC
Copy link
Sponsor Member Author

Test added

new_avail = similar(avail)
for (pkg, vers_avail) in avail
new_vers_avail = similar(vers_avail)
for (version, avail) in vers_avail
Copy link
Member

Choose a reason for hiding this comment

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

Maybe not reuse avail here?

Copy link
Sponsor Member Author

Choose a reason for hiding this comment

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

yeah, good point!

@KristofferC
Copy link
Sponsor Member Author

Could potentially be backported after getting battle tested on master for a while.

@KristofferC
Copy link
Sponsor Member Author

Ok to merge?

@stevengj stevengj merged commit 7df91d3 into master Sep 5, 2016
@stevengj stevengj deleted the kc/spec_copy_avail_pkg branch September 5, 2016 20:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
domain:packages Package management and loading performance Must go faster
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants