HI, All
One my B4J crossplatform project is getting larger and larger.
Many B4Xpages that to be optionally opened by an user...
And the main is that several COM-ports must be processed as fast as possible: data flow of 115 kbaud to be received, checked, parsed, saved into the DB and drawn on the charts practically at real time scale.
Work speed question came very hard.
Firstly i changed SQLite DB to the in-memory one (instead of file), it helped a lot.
And in Release compilation - all works OK. But it was always and it is now almost impossible to debug the app - it's VERY slow work in debug-mode.
And it is going to be slower and slower further, during project is growing.
I understand that in DEBUG mode many debug lines are added into the source code by the IDE - and maybe this is the root of my trouble.
1) Any suggestion how to resolve the situation ?
2) Maybe is it possible to setup some modules by some directive to be ... not in DEBUG mode ? Say, if a module has directive like #AlwaysReleaseMode and compiled without DEBUG lines - it should work faster... @Erel, what do you think ?
One my B4J crossplatform project is getting larger and larger.
Many B4Xpages that to be optionally opened by an user...
And the main is that several COM-ports must be processed as fast as possible: data flow of 115 kbaud to be received, checked, parsed, saved into the DB and drawn on the charts practically at real time scale.
Work speed question came very hard.
Firstly i changed SQLite DB to the in-memory one (instead of file), it helped a lot.
And in Release compilation - all works OK. But it was always and it is now almost impossible to debug the app - it's VERY slow work in debug-mode.
And it is going to be slower and slower further, during project is growing.
I understand that in DEBUG mode many debug lines are added into the source code by the IDE - and maybe this is the root of my trouble.
1) Any suggestion how to resolve the situation ?
2) Maybe is it possible to setup some modules by some directive to be ... not in DEBUG mode ? Say, if a module has directive like #AlwaysReleaseMode and compiled without DEBUG lines - it should work faster... @Erel, what do you think ?
Last edited: