Details
-
Task
-
Status: Open
-
Minor
-
Resolution: Unresolved
-
None
-
None
Description
Profiling preemption logic, I can see PreemptionVictimFilterImpl#preemptionFilter() is producing ~200K/sec lambda objects to be used by filterPreemptionVictims():
PreemptionVictimFilterImpl.filterPreemptionVictims()
FluentIterable<PreemptionVictim> preemptableTasks = FluentIterable.from(possibleVictims) .filter(preemptionFilter(pendingTask));
Inline this logic (refactor to loop) to remove the need to create these short-lived lambda objects.