Skip to content

Commit

Permalink
checking for duplicates in reverse order
Browse files Browse the repository at this point in the history
cache hits are more likely in the most recent builds
  • Loading branch information
rtbo authored and WebFreak001 committed May 18, 2023
1 parent cdbee12 commit 6dd0508
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/dub/generators/build.d
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ class BuildGenerator : ProjectGenerator {
db = Json.emptyArray;
}

foreach (entry; db) {
foreach_reverse (entry; db) {
if (entry["buildId"].get!string == build_id) {
// duplicate
return;
Expand Down

0 comments on commit 6dd0508

Please sign in to comment.