PDA

View Full Version : Speed of thinBASIC 1.0.10.2 Preview (05.08-2006)



Petr Schreiber
05-08-2006, 11:54
Hi,

just downloaded the preview. It really seems slightly faster than older preview version.
Here are my tests:





Old thinBASIC 1.0.10.2 Preview
==============================

100000 FOR : 840 ms
100000 WHILE : 1220 ms
100000 DO WHILE : 1115 ms
100000 DO UNTIL : 1120 ms

RobotDuel, max. settings, fullscreen, singleplayer
MinFPS : 20
MaxFPS : 31




New thinBASIC 1.0.10.2 Preview
==============================

100000 FOR : 795 ms
100000 WHILE : 1045 ms
100000 DO WHILE : 1065 ms
100000 DO UNTIL : 1075 ms

RobotDuel 1.6.4, max. settings, fullscreen, singleplayer
MinFPS : 23
MaxFPS : 32





Bye,
Petr

ErosOlmi
05-08-2006, 12:07
Fine. It is not much but better than nothing.
I've optimized variable assignments. Before there was only one big function handling assignment for every kind of variables. Now there are four functions depending on main variable type: Numeric, String, UDT, Variant. Seems to make some difference. In this way those functions are more easy to maintain for future implementations.

In any case I've other ideas and code to optimize.

Thanks
Eros