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 15:14:54
|
Hi Gertwin, I have done the first test on writing a pythoncad point in to the db structure. It takes 0.25 s for one entity ... Suppose to have a dxf with 100000 entities ...it's around 7 our on my dual core 2.4 GHz machine ... Could you please have a look at my code ..may be I've made some conceptual errors.. Now at each insert I perform a commit ... may be for massive import this slow down the performance .. We can think of something for massive operation... that make the commit at the end of the import and do not write infos into the undo .. Let me know.. Regards Matteo 0.25*100000/60/60 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 > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > |