[omniORB] omniorbpy: switching GC off for duration of every outgoing call

Michael Kilburn crusader.mike at gmail.com
Tue Jan 13 05:48:42 GMT 2015


Hi,

I noticed that if call returns a large structure (like thousands of items)
it makes sense to switch python garbage collection off -- it's only purpose
is to find and kill objects that are alive only because they are in
'reference loop' with other similar objects (and it does check 1-st
generation of objects quite often -- like every 700
allocations/deallocations). But when omniOrbPy converts returned values
into python objects -- it is guaranteed to not create any cycles.

I did test it (just switched gc off) and performance improved noticeably.

Is there any easy way in omniOrbPy to automatically switch gc off in every
outgoing call? (and then switch it back once all data is received and
converted to python objects)

-- 
Sincerely yours,
Michael.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.omniorb-support.com/pipermail/omniorb-list/attachments/20150112/2e1ca94e/attachment.html>


More information about the omniORB-list mailing list