Hi All, I've been very busy these last weeks and I was not very active on this ml. I apologize if any of you didn't get any answer to his question although I regularly checked the ml activity.
However, the development on pythonOCC was not stopped and I've been working silently on fixing open issues, and I found *the* way to fix what was still unclear to me a few weeks ago: 1) memory leaks 2) TopExp_Explorer returned values 3) python lists of OCC objects that return the same object when iterated. Untill now, there are 3 tweaks to deal with these issues: 1) A customized garbage collector 2) hashes 3) use builtin OCC lists/arrays/sets etc. It is clear that it's not robust enough to imagine using pythonOCC in some intensive modeling activities with thousands of objects, or run long term modeling programs (I mean, programs running for hours or days). The fix I'm working on will solve these 3 issues at the same time (no need for gc or special hashes) without modifying the API, with an overall performance improvement. In a few words, the idea is to move the 'return by reference' C++ mechanism to static casting to the C++ object in order to get clean python objects, properly deleted by python, the memory being freed by the OCC reference counting mechanism (that is to say, the behavior we should expect from a python wrapper!). First results are promising. I'm waiting for this work to be completed before committing anything to the subversion repository. I will do it as soon as I'm satisfied with this new wrapper and when it's ready to be tested. Best Regards, Thomas
_______________________________________________ Pythonocc-users mailing list Pythonocc-users@gna.org https://mail.gna.org/listinfo/pythonocc-users