> I'm attaching a simple demo program that shows this. When compiled like
>    fpc -OG -O2 -Op2 demo_resourcestring_slow.pas
> (to get maximum optimizations) sample output of it is
>    Time of Foo_Normal:         16
>    Time of Foo_ResourceString: 106
> So time difference is really noticeable. Question goes to FPC
> developers, maybe such cases with using resourcestrings can be speed up ?

You can compile with -al and run a diff between the generated .s files.




_______________________________________________
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel

Reply via email to