]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mgr/BaseMgrModule: Optimize CPython Call in Finish Function 57585/head
authorNitzanMordhai <nmordech@redhat.com>
Thu, 23 Nov 2023 12:01:03 +0000 (12:01 +0000)
committerNitzan Mordechai <nmordech@redhat.com>
Tue, 21 May 2024 05:14:28 +0000 (05:14 +0000)
commit46584b01a936a9434fa01fb624a6b43ed32542ba
tree24a11b0ad3915d63eda048ea2dd9a429a7f38982
parent1340775becf34c25cdd317a668cbd5f0d19c6024
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