You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@mesos.apache.org by "Benno Evers (JIRA)" <ji...@apache.org> on 2018/01/17 13:25:00 UTC
[jira] [Created] (MESOS-8450) SlaveInfo comparison is unnecessarily
expensive
Benno Evers created MESOS-8450:
----------------------------------
Summary: SlaveInfo comparison is unnecessarily expensive
Key: MESOS-8450
URL: https://issues.apache.org/jira/browse/MESOS-8450
Project: Mesos
Issue Type: Bug
Reporter: Benno Evers
Currently, the comparison operator of `struct SlaveInfo` is creating two temporary `Resources` objects and two temporary `Attributes` objects. All of these constructors do a bunch of work and allocate memory.
Instead of passing around `SlaveInfo` in the master, we should probably use some wrapper that stores the raw message as well as caching the lazily generated `Resources` and `Attributes` objects associated with that `SlaveInfo`.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)