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)