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. Eike -- OOo/SO Calc core developer. Number formatter stricken i18n transpositionizer. SunSign 0x87F8D412 : 2F58 5236 DB02 F335 8304 7D6C 65C9 F9B5 87F8 D412 OpenOffice.org Engineering at Sun: http://blogs.sun.com/GullFOSS Please don't send personal mail to the e...@sun.com account, which I use for mailing lists only and don't read from outside Sun. Use er...@sun.com Thanks.
pgpAfodYf43G6.pgp
Description: PGP signature