Re: [Pythoncad-developer] New testing kernel
CAD Application entire developed in Python
Status: Beta
Brought to you by:
matteoboscolo
From: Matteo B. <mat...@bo...> - 2010-02-17 18:04:31
|
Hi Gertwin, I did other test on the new pykernel and i have implemented a method to stop to write in the undo table (Usu foul in case of dxf import). This is the result in the linux with the some machine ...(i have dual boot) I Takes 0.01 second without undo and 0.02 second with undo 0.01*100000/60 ==15 Minutes (That is not very fast)...but better than 7h Regards, Matteo Get New id in : 0.01s Create PyCadEnt in : 0.0s Save PyCadEnt in : 0.0s Create n: 1 entity in : 0.01s Script terminated. /media/Dati/Matteo/personale/programming/python/PythonCadR38NG/pythoncad/PythonCAD/Generic/Kernel/pycadkernel.py Get New id in : 0.01s Create PyCadEnt in : 0.0s Save PyCadEnt in : 0.0s Create n: 1 entity in : 0.01s Script terminated. /media/Dati/Matteo/personale/programming/python/PythonCadR38NG/pythoncad/PythonCAD/Generic/Kernel/pycadkernel.py Get New id in : 0.01s Create PyCadEnt in : 0.0s Save PyCadEnt in : 0.0s getNextUndo in : 0.01s Create n: 1 entity in : 0.02s Script terminated. /media/Dati/Matteo/personale/programming/python/PythonCadR38NG/pythoncad/PythonCAD/Generic/Kernel/pycadkernel.py Get New id in : 0.0s Create PyCadEnt in : 0.0s Save PyCadEnt in : 0.0s getNextUndo in : 0.01s Create n: 1 entity in : 0.01s On Tue, 2010-02-16 at 22:15 +0000, ger...@gm... wrote: > I started with commenting out all the old "Image class" related code > but the old "Image class" is used every where. > I will start with new interface code and only copy those parts that > are needed from the old code. > > Regards, > Gertwin > > > Op schreef Matteo Boscolo <mat...@bo...>: > > > > > > > 2) Or I can start with a new main window + viewport for the test > and > > > > > later copy the code that is needed from the old version into it. > > > > > Maybe the second option is more efficient in the end. > > > > I will take more than a week to have something that work properly to > > > > make some test. > > > > so you cad think at the best way to write your code. > > > > > > > > Let me know... > > > > > > > > Regards, > > > > Matteo > > > > > > > > > > > > > > Op schreef Matteo Boscolo mat...@bo...>: > > > > > > Hi Gertwin, > > > > > > > > > > > > > > > > > > > > > > > > > I am going to adjust the existing interface (viewport) code to > > > > > work > > > > > > > > > > > > > with your kernel module. > > > > > > > > > > > > > After that we can do some performance tests. > > > > > > > > > > > > ok let me know when you have finish ... > > > > > > > > > > > > > > > > > > > > > > > > > Why are there 2 database connections? > > > > > > > > > > > > > The first is made in PyCadDbKernel, the second is made in > > > > > PyCadUndoDb. > > > > > > > > > > > > I have made some more modification that I will commit tomorrow > and > > > > > all > > > > > > > > > > > > will be clear ... > > > > > > > > > > > > > > > > > > > > > > > > I'm changing costantly the kernel module to perform all the > feature > > > > > that > > > > > > > > > > > > we have discuss.. > > > > > > > > > > > > > > > > > > > > > > > > > If I have more questions during the adjusting the existing > > > > > interface > > > > > > > > > > > > > code, I will post them in this thread. > > > > > > > > > > > > > > > > > > > > > > > > > Thats good .. we need to find the best solution for our > product.. > > > > > > > > > > > > > > > > > > > > > > > > Regards, > > > > > > > > > > > > Matteo > > > > > > > > > > > > > > > > > > > > > > > > > > Regards, > > > > > > > > > > > > > Gertwin > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Op schreef Matteo Boscolo mat...@bo...>: > > > > > > > > > > > > > > Hi All, > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Today I have committed the new testing version of the kernel > > > > > using > > > > > > > > > > > > > the > > > > > > > > > > > > > > > > > > > > > > > > > > > > sqlite db. > > > > > > > > > > > > > > > > > > > > > > > > > > > > You can find it in the git unde Generic\kernel > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > This is just a working model for doing some performance and > > > > > feature > > > > > > > > > > > > > > > > > > > > > > > > > > > > test. > > > > > > > > > > > > > > > > > > > > > > > > > > > > If the test that we are gonna to do well be good in > performance > > > > > and > > > > > > > > > > > > > > > > > > > > > > > > > > > > feature, we well introduce it under R38. > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > This new way to store the information on a db will help us > to > > > > > > > > > > > > > improve > > > > > > > > > > > > > > > > > > > > > > > > > > > > our solution with the following capability: > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > 1) possibility to have the drawing with all the technical > > > > > revisions. > > > > > > > > > > > > > > > > > > > > > > > > > > > > 2) very easy to develop new feature > > > > > > > > > > > > > > > > > > > > > > > > > > > > 3) possibility to have a file stored in an mysql > db(distribute > > > > > > > > > > > > > > > > > > > > > > > > > > > > enviroment) > > > > > > > > > > > > > > > > > > > > > > > > > > > > 4) force access of some part of the drawing with group\user > > > > > policy > > > > > > > > > > > > > (will > > > > > > > > > > > > > > > > > > > > > > > > > > > > be develop after merging with the r38 code) > > > > > > > > > > > > > > > > > > > > > > > > > > > > 5) improve performance in opening drawing > > > > > > > > > > > > > > > > > > > > > > > > > > > > 6) improve performance during scale pan action > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Any comment are really appreciated. > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Regards, > > > > > > > > > > > > > > > > > > > > > > > > > > > > Matteo > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > ps: > > > > > > > > > > > > > > > > > > > > > > > > > > > > Actually the code is store in one single file, I need to > split > > > > > it > > > > > > > > > > > > > into > > > > > > > > > > > > > > > > > > > > > > > > > > > > more module .../ > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > > > > > > > > > > > > > > > > > > > > > > > > > > SOLARIS 10 is the OS for Data Centers - provides features > such > > > > > as > > > > > > > > > > > > > DTrace, > > > > > > > > > > > > > > > > > > > > > > > > > > > > Predictive Self Healing and Award Winning ZFS. Get Solaris > 10 > > > > > NOW > > > > > > > > > > > > > > > > > > > > > > > > > > > > http://p.sf.net/sfu/solaris-dev2dev > > > > > > > > > > > > > > > > > > > > > > > > > > > > _______________________________________________ > > > > > > > > > > > > > > > > > > > > > > > > > > > > Pythoncad-developer mailing list > > > > > > > > > > > > > > > > > > > > > > > > > > > > Pyt...@li... > > > > > > > > > > > > > > > > > > > > > > > > > > > > > https://lists.sourceforge.net/lists/listinfo/pythoncad-developer > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > > > > > > > > > > > SOLARIS 10 is the OS for Data Centers - provides features such > as > > > > > DTrace, > > > > > > > > > > > > > Predictive Self Healing and Award Winning ZFS. Get Solaris 10 > NOW > > > > > > > > > > > > > http://p.sf.net/sfu/solaris-dev2dev > > > > > > > > > > > > > _______________________________________________ > > > > > Pythoncad-developer mailing list > > > > > Pyt...@li... > > > > > https://lists.sourceforge.net/lists/listinfo/pythoncad-developer > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > |