Mehrdad Nurolahzade created AURORA-1894:
-------------------------------------------

             Summary: Inline preemption filter in PreemptionVictimFilterImpl
                 Key: AURORA-1894
                 URL: https://issues.apache.org/jira/browse/AURORA-1894
             Project: Aurora
          Issue Type: Task
          Components: Scheduler
            Reporter: Mehrdad Nurolahzade
            Priority: Minor


Profiling preemption logic, I can see 
{{org.apache.aurora.scheduler.preemptor.PreemptionVictimFilter.PreemptionVictimFilterImpl#preemptionFilter()}}
 is producing ~200K/sec lambda objects to be used by 
{{filterPreemptionVictims()}}:
{code:title=PreemptionVictimFilterImpl.filterPreemptionVictims()}
      FluentIterable<PreemptionVictim> preemptableTasks = 
FluentIterable.from(possibleVictims)
          .filter(preemptionFilter(pendingTask));
{code}

Inline this logic (refactor to loop) to remove the need to create these 
short-lived lambda objects.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to