mesos-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James Peach (JIRA)" <>
Subject [jira] [Commented] (MESOS-3052) optimize slave ID comparison in filter lists
Date Thu, 30 Jul 2015 20:43:05 GMT


James Peach commented on MESOS-3052:

For posterity, the patch is I'll knock up a new one that
organizes the filters by slave.

> optimize slave ID comparison in filter lists
> --------------------------------------------
>                 Key: MESOS-3052
>                 URL:
>             Project: Mesos
>          Issue Type: Bug
>          Components: allocation
>            Reporter: James Peach
>            Assignee: James Peach
>         Attachments: MESOS-3052.tiff
> With a large number of frameworks that all refuse offers permanently, the filter lists
can get long. Comparing the slave IDs on the long filter lists ends up taking noticeable time.
> Since each filter list traversal matches on on a single slave ID, we can optimize this
by hashing the slave ID and checking the hash before comparing the full slave ID. This is
a 5% - 10% performance win.

This message was sent by Atlassian JIRA

View raw message