Uploaded image for project: 'Aurora'
  1. Aurora
  2. AURORA-1894

Inline preemption filter in PreemptionVictimFilterImpl

    XMLWordPrintableJSON

Details

    • Task
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • None
    • None
    • Scheduler

    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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            mnurolahzade Mehrdad Nurolahzade
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: