Skip to content

Commit

Permalink
perf: get slightly more from parallel scheduling
Browse files Browse the repository at this point in the history
  • Loading branch information
ishland committed Aug 31, 2024
1 parent acbec28 commit 9b47bca
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -135,8 +135,8 @@ public boolean tick() {
continue;
}
if (nextStatus == current) {
holder.cleanupDependencies(this);
if (current.equals(getUnloadedStatus())) {
holder.cleanupDependencies(this);
// System.out.println("Unloaded: " + key);
this.onItemRemoval(holder);
holder.release();
Expand All @@ -148,6 +148,7 @@ public boolean tick() {
}
continue;
}
holder.submitOp(CompletableFuture.runAsync(() -> holder.cleanupDependencies(this), getBackgroundExecutor()));
continue; // No need to update
}
if (current.ordinal() < nextStatus.ordinal()) {
Expand Down

0 comments on commit 9b47bca

Please sign in to comment.