]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mgr/BaseMgrModule: Optimize CPython Call in Finish Function 55109/head
authorNitzanMordhai <nmordech@redhat.com>
Thu, 23 Nov 2023 12:01:03 +0000 (12:01 +0000)
committerKonstantin Shalygin <k0ste@k0ste.ru>
Thu, 1 Feb 2024 18:01:03 +0000 (01:01 +0700)
commit910cd68b4fab51bcaf4ddecf18bc31cb4b95a357
treeeea2b2e40bd7a928162c23c98e896880b03f4aa8
parent88fb4c6adb4bae6b1cdf34fca7eae2dacb06cc7b
mgr/BaseMgrModule: Optimize CPython Call in Finish Function

Remove CPython overhead packing tuple during the 'finish' function to
improve memory consumption when we deal with long-string outputs.
When modules like Restful return large amounts of output the use
of PyObject_CallFunction without createing PyObject will reduce the
time the memory held by the mgr.

Fixes: https://tracker.ceph.com/issues/59580
Signed-off-by: Nitzan Mordechai <nmordech@redhat.com>
(cherry picked from commit 247ace17086ddddd6b7bda44a067d4b1eaa238fd)
src/mgr/BaseMgrModule.cc