]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
common: MemoryModel: use charconv to parse /proc/status
authorRonen Friedman <rfriedma@redhat.com>
Mon, 17 Jun 2024 18:23:26 +0000 (13:23 -0500)
committerRonen Friedman <rfriedma@redhat.com>
Tue, 18 Jun 2024 11:36:02 +0000 (06:36 -0500)
commit6ed303881c43d2730ce345bcbd010bcf362a25ca
tree2bde3b184604c833468d3f0f1bdebbd0cef91878
parent7752ceed3ca532e0b1c86ad6a7322dd6bc0f986d
common: MemoryModel: use charconv to parse /proc/status

Also - stopping the parsing of /proc/status once all the needed fields
have been found,
The resulting code is measurably faster than the previous version.

Signed-off-by: Ronen Friedman <rfriedma@redhat.com>
src/common/MemoryModel.cc
src/common/MemoryModel.h