[Pythoncad-developer] Test Performance
CAD Application entire developed in Python
Status: Beta
Brought to you by:
matteoboscolo
From: Matteo B. <mat...@bo...> - 2010-03-27 08:05:34
|
Hi Gerwin, I did some performance test on the huge dxf layout that you have send to me. This is the result of memory charge with wx 475 Mb with text_interface 338 Mb I will look better to it, but at the first glance I can surly say that all this memory consumption is due to the kernel.getAllDrawingEntity() function. This function create all the geometrical object in memory and of course with about 227250 object created the memory consumption is very hight. Using this method we have replicated R37 ... that is not what we are try to do.. we need to avoid to use this method for get all the entity for the display list.. We need to load the entity just for geometrical operation .. nothing else... as we have discuss in some mail ... May be you can destroy elements from the array after generating the display list..so the python garbage collection remove it from the memory.. But of course remain a pick of memory .. or may be the problem is that I do not close the cursor after giving to you the array .. I will do some more test and let you know... Do you have any alternative way to create the display list without using the kernel.getAllDrawingEntity() function ? Regards, Matteo |