Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Passing an array to a custom dll

Status
Not open for further replies.

Komil13

Programmer
Sep 26, 2001
50
US
Hey guys,

I have created a custom dll that accepts a 2-dimensional string array. The array holds all the product info for an online order form. The dll processes through that array and returns the cheapest freight carrier and the price.

The problem is that this array takes about 1-2 seconds to build, but takes a long time for it to be passed to the dll. I tried sending the array by reference and go the same results.

How can I speed up this process?

Thanks ....

Komil
 
1-2 seconds to build. That seems long. Maybe post some of the code used to create the array and someone could identity the bottleneck. I don't think it takes any significant amount of time to actually pass a reference to another method. The processing of the array by your component is probably the most time-comsuming of all.

[pipe]
 
I was able to figure out the bottleneck. At first, it seemed that it was the array, but after pulling every line apart in the dll, I figured out that it wasn't the array after all. The problem was a query in the dll that was querying a table of 750,000+ records. Currently, I am working on restructuring the db. Thank you for all your thoughts and help.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top