slang-users mailing list

[2017 Date Index] [2017 Thread Index] [Other years]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]

[slang-users] Slang 2.x is slow compared to 1.x


I recently upgraded to slang 2.3.1a from slang 1.4 (I know really old).
Unfortunately after the upgrade, the performance has decreased by more than
100 times.
I tried a simple for loop code to test the performance:

 variable i;
variable start = _time();
for (i = 0; i < 10000000; i++){}
printf("It took : %d seconds\n", _time() - start);

On version 1.4, I get:
It took : 1 seconds

On version 2.3.1a, I get:
 It took : 343 seconds

Am I doing something wrong? Is there like a special compile option to
enable optimization. I noticed that the 2.3.1a code is compiled with -O2
optimization.
Did anyone experience this type of slowdown?

I appreciate any help.

Thanks

[2017 date index] [2017 thread index]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]