|
-
May 2nd, 2024, 11:21 AM
#18
Lively Member
Re: Early Bound Objects and Standard StdCall DLLs
 Originally Posted by Elroy
Ok, I've run my speed-tests, and I'm not thrilled with the results.
The test is basically taking my BST_LngKey_NoVal.cls, and using it to randomly create a tree (from 1 to 31 nodes), and then randomly deleting those nodes until they're gone ... and then doing all of that 10,000 times.
If I compile the BST_LngKey_NoVal.cls into an Ax.DLL, and then access it that way, it takes ~2.50 second.
If I just include the BST_LngKey_NoVal.cls class in my Std-EXE project, and use it directly, it takes ~1.25 seconds.
-------------
I'm not sure where the slowdown is happening for the Ax.DLL. Maybe it's not really early-bound? Or maybe re-instantiating the class each of the 10,000 times with the NewObjectFromActivexDll procedure is causing the slowdown?
Hmmm, I've got a BST.Clear method. I'll try that instead of re-instantiating each time through the loop.
I think maybe u should create a tree with 10000 nodes to get a reasonable result.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|