mesos-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Anand Mazumdar (JIRA)" <j...@apache.org>
Subject [jira] [Created] (MESOS-6303) Consider changing the scheduler library received callback to be a vector/list of events.
Date Sat, 01 Oct 2016 21:34:20 GMT
Anand Mazumdar created MESOS-6303:
-------------------------------------

             Summary: Consider changing the scheduler library received callback to be a vector/list
of events.
                 Key: MESOS-6303
                 URL: https://issues.apache.org/jira/browse/MESOS-6303
             Project: Mesos
          Issue Type: Improvement
            Reporter: Anand Mazumdar


Currently, the {{received}} callback for the Scheduler library returns a {{queue}} of events
which makes sense semantically. However, this also means that callers have to inherently copy
the queue object by value due to looping on all the events and invoking {{pop()}} on the queue
(it can't be a const reference). We should consider changing it to {{list}} or {{vector}}
to avoid the extra copying if this is a performance bottle-neck.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message