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

portdbapi.cp_list: cache repo associations (bug 650814) #339

Merged

Commits on Jul 15, 2018

  1. portdbapi.cp_list: cache repo associations (bug 650814)

    Make portdbapi.cp_list return _pkg_str instances that have a 'repo'
    attribute (bindbapi.cp_list already does this), with results
    in ascending order by (pkg.version, repo.priority). Optimize
    portdbapi.findname2 to use the 'repo' attribute to enable cached
    results for files previously found by the portdbapi.cp_list
    method, avoiding filesystem access when possible. Optimize the
    depgraph._iter_match_pkgs_atom method by elimination of the repo
    loop, since portdbapi.cp_list now returns separate items when the
    same package version is found in multiple repos.
    
    Bug: https://bugs.gentoo.org/650814
    Reviewed-by: Brian Dolbec <dolsen@gentoo.org>
    zmedico committed Jul 15, 2018
    Configuration menu
    Copy the full SHA
    27eeeb6 View commit details
    Browse the repository at this point in the history