]> git.proxmox.com Git - cargo.git/commit
store jobs priorities in the pending queue
authorRémy Rakic <remy.rakic+github@gmail.com>
Fri, 2 Sep 2022 15:55:42 +0000 (17:55 +0200)
committerRémy Rakic <remy.rakic+github@gmail.com>
Fri, 2 Sep 2022 15:59:10 +0000 (17:59 +0200)
commit4ffe98ae3aa86783b909bc1697f1fbd9050c00ff
treebcbfdbea9ac41443cb3c69c88814134ffe368d13
parent9ef295852bfc63081cf3bd647682aed1f9762f11
store jobs priorities in the pending queue

This cleans up the priority-sorted scheduling by removing the need
for a priority accessor that would hash the nodes, and allows inserting
in the queue at the correctly sorted position to remove the insert +
sort combination.
src/cargo/core/compiler/job_queue.rs
src/cargo/util/dependency_queue.rs