[AccessD] Array faster in DLL?

Jim DeMarco Jdemarco at hudsonhealthplan.org
Fri Oct 28 11:11:07 CDT 2005


>>more complicated than a Windows API call
Not sure what you mean by complicated.  Is there an API you can call to do what you need?  If so then a DLL may be more work or steps than is needed.  If not, what choice would you have?

Jim D.

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


Hi Jim

But it wouldn't be more complicated than a Windows API call which you can use just by a Declare .. As .. etc.
I have no need for setting properties, not even checking a result code ...

/gustav

>>> Jdemarco at hudsonhealthplan.org 28-10-2005 17:47:16 >>>
Yes if you want it in a DLL (or you'll at least need a class that uses your standard modules; these will provide the public interface to the DLL).  Think about every built-in VBA oject you use.  All stored in classes in various DLLs within Office (hence "object").

Jim D.

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


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


-- 
AccessD mailing list
AccessD at databaseadvisors.com
http://databaseadvisors.com/mailman/listinfo/accessd
Website: http://www.databaseadvisors.com


 



***********************************************************************************
"This electronic message is intended to be for the use only of the named recipient, and may contain information from Hudson Health Plan (HHP) that is confidential or privileged.  If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of the contents of this message is strictly prohibited.  If you have received this message in error or are not the named recipient, please notify us immediately, either by contacting the sender at the electronic mail address noted above or calling HHP at (914) 631-1611. If you are not the intended recipient, please do not forward this email to anyone, and delete and destroy all copies of this message.  Thank You".
***********************************************************************************




More information about the AccessD mailing list