Re: source code speed question

new topic     » goto parent     » topic index » view thread      » older message » newer message
Lnettnay said...

In DLL.E C_INT, C_LONG, etc. are constants initialized in HEX.

When using say a C_LONG does the program convert it to DECIMAL each time its used in the user's code or is it converted to DECIMAL only ONCE when it's defined as a constant ?

I know it is more convenient to use HEX in the source but wouldn't be faster to use all DECIMAL in the constants so no conversion would be required ?

I am quite certain that numeric constants are stored in an internal format, not decimal. Hex constants would be evaluated directly to this format. Any performance differences would be nill.

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu