]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mgr/BaseMgrModule: Optimize CPython Call in Finish Function 55110/head
authorNitzanMordhai <nmordech@redhat.com>
Thu, 23 Nov 2023 12:01:03 +0000 (12:01 +0000)
committerKonstantin Shalygin <k0ste@k0ste.ru>
Tue, 9 Jan 2024 16:29:13 +0000 (23:29 +0700)
commitb3b068adb1d557324da2cfc02f4ab74842b5e4cd
tree629e927b02c11ea7927cc3f5946641e2986402fa
parent9c9b2197bb3d0836c997bf41e691c368693100be
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