]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mgr/BaseMgrModule: Optimize CPython Call in Finish Function 54634/head
authorNitzanMordhai <nmordech@redhat.com>
Thu, 23 Nov 2023 12:01:03 +0000 (12:01 +0000)
committerNitzanMordhai <nmordech@redhat.com>
Thu, 21 Dec 2023 10:08:53 +0000 (10:08 +0000)
commit247ace17086ddddd6b7bda44a067d4b1eaa238fd
treec82bd1dad5155911e34000f198edf77e50ff0853
parentc6b0b2113b8804cd2a9114bf0bc19934a2fc570f
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>
src/mgr/BaseMgrModule.cc