[AccessD] Array faster in DLL?

Gustav Brock Gustav at cactus.dk
Fri Oct 28 09:49:32 CDT 2005


Hi Jim

Sounds great! 
No they are not classes. I simply pass ByRef an array to a function which shuffles around the content of the array according to some rules and other params. Would I need to wrap such a function in a class?

/gustav


>>> Jdemarco at hudsonhealthplan.org 28-10-2005 15:41:34 >>>
Gustav,

I'd expect some speed increase from compiled code but how much is hard to say.  It's doubtful that it would cut the time in half but it's certainly a possiblity.

Are your routines in class modules?  If not and you can write them into a class or classes I'd be glad to compile them for you so you could test.

Jim DeMarco

-----Original Message-----
From: accessd-bounces at databaseadvisors.com 
[mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Gustav Brock
Sent: Friday, October 28, 2005 9:30 AM
To: accessd at databaseadvisors.com 
Subject: [AccessD] Array faster in DLL?


Hi all

I have some routines that manipulate data in and between some arrays. 
The arrays are not large but they are recalculated about 3 mio. times which runs on my machine to 90 seconds.

I was wondering if there would be any significant speed increase by moving these routines to a DLL. I have no experience in writing such libraries but guess I could find as the routines are uncomplicated. Variables are Long mostly, only one Single. 
It would take me some time to program these, of course, and if the speed increase only could be expected to be, say, 30%, it wouldn't hardly be worth it.

Does anyone (Drew, Stuart?) have experience about what to expect?

/gustav





More information about the AccessD mailing list