[Pythoncad-developer] PythonCAD performance
CAD Application entire developed in Python
Status: Beta
Brought to you by:
matteoboscolo
From: Gertwin G. <ger...@gm...> - 2009-12-24 15:37:18
|
Hello developers, I did a quick performance measurement on PythonCAD. I imported the "8th floor furniture.dxf" (4.4 mb) file in PythonCAD and saved it as "8th floor furniture.xml.gz" (0.85 mb). The performance measurements are done with the "8th floor furniture.xml.gz" file on a quad core 64 bits linux box with 4Gb memory. I think a 0.85 mb drawing is rather small than big. I consider drawings ten times that size as big. Before loading PythonCAD in memory 332 mb is used. After loading PythonCAD in memory 348 mb is used (that is OK). Opening the "8th floor furniture.xml.gz" takes about 1:30 min and costs about 960 mb of memory (PythonCAD + drawing = 1316 mb). (I think this is a very huge memory consumption) The time to redraw the drawing on screen is around 4 seconds, that is not to bad. Closing the drawing cost a lot of time, around 9:40 minutes. After closing the drawing still 1316 mb memory is used but maybe no garbage collection was done at that moment. I tested this with the old and new drawing functions, there are no significant differences between the two. I think the time to open the drawing is to long, maybe half the loading time is good. Closing the drawing takes way to long, I think it is OK when it takes the same amount of time as loading. Memory consumption is to high. What do you all think about this? Do you experience the same issues? I can investigate this after I finished the new viewport drawing. Regards, Gertwin |