Thread: [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-16 06:58:59
|
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 .../ |
From: <mat...@bo...> - 2010-02-22 14:12:32
|
Hi gertwin, I did other test in Linux and Windows here you can find the results. Python 2.6 Pythoncad Point Creation Intel Core(TM) Duo Cpu 2.4Ghz Ram 4 GB Test Made on Linux Debian(Testing) Create n: 1 entity in : 0.0s Create n: 10 entity in : 0.0s Create n: 100 entity in : 0.0s Create n: 1000 entity in : 0.12s Create n: 10000 entity in : 1.14s Create n: 100000 entity in : 12.89s Create n: 100000 entity in : 13.55s Test Made on Windows7 Create n: 1 entity in : 0.214576866551s Create n: 1 entity in : 0.173324376996s Create n: 1 entity in : 0.247212019176s Create n: 1 entity in : 0.282934968863s Create n: 10 entity in : 0.255009594547s Create n: 100 entity in : 0.293140486851s Create n: 1000 entity in : 0.463024517973s Create n: 10000 entity in : 1.54535450623s Create n: 100000 entity in : 11.9223061998s Create n: 100000 entity in : 11.8991265432s Regard, Matteo |
From: <ger...@gm...> - 2010-02-16 20:09:56
|
Hi Matteo, I am going to adjust the existing interface (viewport) code to work with your kernel module. After that we can do some performance tests. I have a question: Why are there 2 database connections? The first is made in PyCadDbKernel, the second is made in PyCadUndoDb. If I have more questions during the adjusting the existing interface code, I will post them in this thread. 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 |
From: Matteo B. <mat...@bo...> - 2010-02-16 20:57:29
|
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 |
From: <ger...@gm...> - 2010-02-16 21:20:16
|
1) I can do it quick and dirty, leave all the old code and add some new code. At some time we must remove all the "dead" code. 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. Regards, Gertwin 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 |
From: Matteo B. <mat...@bo...> - 2010-02-16 21:30:50
|
> 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 > > > > > > > > > > |
From: <ger...@gm...> - 2010-02-16 22:16:06
|
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 > > > > > > > > > > > > > > > |
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 > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > |
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 > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > |