Re: source code speed question
- Posted by LarryMiller Apr 02, 2009
- 1033 views
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.