Eike Rathke wrote: > Hi Mathias, > > On Monday, 2010-02-15 12:34:10 +0100, Mathias Bauer wrote: > >> startup would become ~6% larger by converting all "#ifdef DBG_UTIL" to >> "if (bDBG_UTIL==true)". The influence on startup performance would be a >> little bit less than this 6%, but probably measurable. >> [...] >> >> "bDBG_UTIL" would be a global variable that can be set from the >> environment, a configuration file etc. [Before someone asks: all >> "#if(n)def PRODUCT" statements have been converted to use DBG_UTIL >> instead already.] > > Careful, some DBG_UTIL respectively former non-/PRODUCT code uses > different data or class layouts when activated during compile time, it > is not possible to replace all DBG_UTIL macros with a runtime equivalent > in these cases. For the same reason it is not feasible to mix > non-DBG_UTIL with DBG_UTIL compiled code if one doesn't know the exact > impact of such an approach.
Yes, but I'm sure that we could find a way to change the code in a away that keeps everything that has a performance impact or produces unwanted output in "if (bDBG_UTIL)" blocks. Regards, Mathias --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@openoffice.org For additional commands, e-mail: dev-h...@openoffice.org