]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
prometheus: Optimize metrics formatting
authorBoris Ranto <branto@redhat.com>
Thu, 12 Jul 2018 15:05:18 +0000 (17:05 +0200)
committerBoris Ranto <branto@redhat.com>
Tue, 17 Jul 2018 20:28:59 +0000 (22:28 +0200)
commitd395868d9ef787d98fa1a0f9dd0e84e41d04fd26
tree22e624dc2720dfc9bd634e3252ce4145a1a34348
parent086935189275d38c0bc6df674f6fc86aaa4de770
prometheus: Optimize metrics formatting

It is faster to use join for join multiple strings than the regular
string concatenation since it does not create a new string on each
iteration.

Signed-off-by: Boris Ranto <branto@redhat.com>
src/pybind/mgr/prometheus/module.py