[fpc-devel] Macro Processing
Daniël Mantione
daniel.mantione at freepascal.org
Sat May 14 12:11:49 CEST 2011
Op Sat, 14 May 2011, schreef Marco van de Voort:
>> 2) This is the solution? Making the compiler to store somewhere a
>> string representation in my object file and then give it back to me if
>> I request it by str(enumerate)??? Thats so completely ... overhead,
>
> Not really, if the RTTI is too slow for you, simply generate the array once
> on startup. (disclaimer I actually never have tested RTTI speed)
It ain't slow at all. I think it beats many quick and dirty manual
conversion solutions in speed and/or memory consumption. Maybe if you use
it in an inner loop you may want your own code.
Daniël
More information about the fpc-devel
mailing list