Description
MetricUtils unnecessarily creates a lot of short-lived objects (maps and lists). This affects GC, especially since metrics are frequently polled by clients. We should refactor it to use MapWriter as much as possible.
Alternatively we could provide our wrappers or subclasses of Codahale metrics that implement MapWriter, then a lot of complexity in MetricUtils wouldn't be needed at all.
Attachments
Issue Links
- links to