[
https://issues.apache.org/jira/browse/MESOS-9072?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16547080#comment-16547080
]
Greg Mann commented on MESOS-9072:
----------------------------------
The above commit {{42becf22f07831ef8c3d4fbc8c1b80eb9d5b959a}} was reverted due
to a regression caused by that version of the change. The following updated
patch reapplies it:
{code}
commit abf11a951d177182d0c3a4d40ae7825101778739
Author: Greg Mann <[email protected]>
Date: Mon Jul 16 09:11:46 2018 -0700
Optimized the generation of metrics snapshots.
Profiling of metrics generation revealed a large amount of time spent
in map operations. This patch does three things to mitigate this:
* Stores the metrics as an ordered map so that we only pay the price
of sorting when the metric is first added.
* Makes use of vectors instead of maps for intermediate objects,
which eliminates the need for another intermediate object.
* Hints when inserting into the returned map, reducing the cost of
insertion into that ordered container.
Review: https://reviews.apache.org/r/67871/
{code}
> Optimize metrics generation
> ---------------------------
>
> Key: MESOS-9072
> URL: https://issues.apache.org/jira/browse/MESOS-9072
> Project: Mesos
> Issue Type: Task
> Reporter: Greg Mann
> Priority: Major
> Labels: mesosphere, performance
>
> As we add more metrics, the response time of the metrics snapshot is going
> up. We should optimize the generation of the snapshot to improve response
> times.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)