Re: [Pythoncad-developer] New kernel
CAD Application entire developed in Python
Status: Beta
Brought to you by:
matteoboscolo
From: Matteo B. <mat...@bo...> - 2010-03-04 07:43:08
|
Hi Gerwin, I did the test ... > > So when we create a new entity instead > > of picling the array of point we will insert in a separate > table ..like > > this .. > > > > Id | idEnt | x | y | z > > > > I Will do some test to see what > > is fast … > > I am curious if it is faster. print Test with 10 entitys End time for nLoop 10 in 0.0 everage 0.0 End time for nLoop 10 in 0.01 everage 0.001 print Test with 100 entitys End time for nLoop 100 in 0.0 everage 0.0 End time for nLoop 100 in 0.05 everage 0.0005 print Test with 1000 entitys End time for nLoop 1000 in 0.05 everage 5e-05 End time for nLoop 1000 in 0.31 everage 0.00031 print Test with 1000 entitys End time for nLoop 1000 in 0.05 everage 5e-05 End time for nLoop 1000 in 0.34 everage 0.00034 print Test with 10000 entitys End time for nLoop 10000 in 0.52 everage 5.2e-05 End time for nLoop 10000 in 3.15 everage 0.000315 print Test with 100000 entitys End time for nLoop 100000 in 4.98 everage 4.98e-05 End time for nLoop 100000 in 31.43 everage 0.0003143 It seems that pickling is the best solution .. With for a single operation there is no difference.. but in case of massive operation like importing dxf picling is faster.. so i will let the kernel picking the points for the entitys .. Another good test will be to try to load the some entity and see what happen ... But i think that cPickling will be faster .. Regards, Matteo |