[AccessD] Array faster in DLL?

Stuart McLachlan stuart at lexacorp.com.pg
Sun Oct 30 20:41:55 CST 2005


On 30 Oct 2005 at 21:16, Gustav Brock wrote:

> The DLL was programmed and compiled in FreeBASIC and the FBIde which I earlier posted links for.
>
> Setting lngLoopMax to 10^6 returns these running times for the two functions:
> 
>   ArrayTimeLocal: 34 seconds
>   ArrayTimeDLL: 2.2 seconds (measured with 10^7 loops)
> 
> Thus this simple tool gives a speed improvement of 15.5 to 1 ... not bad!
...
> Still, if anyone with PowerBasic or other compiler could make similar tests and publish the results,

On my machine  with the same code compiled to DLL in PowerBasic:

ArrayTimeLocal: 27 (10^6)
ArrayTimeDLL: 2.7 (actually 27 secs for 10^7)

An improvement of 10:1 . 

Looks like for this set of operations  FreeBASIC does a better job than 
PowerBASIC. 





-- 
Stuart





More information about the AccessD mailing list