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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Performance problem (components overhead)

Status
Not open for further replies.

petersJazz

Programmer
Jan 28, 2002
222
EU
I have a performance problem when running an VB6 application with 3 components. If I make an installation with the components installation guide and run it. Then the speed of the software is many times lower than if I start one special components and run it in VB. If I start and run the components in VB that I mostly uses in the process I get the same slow result. But if I start another component in VB then the speed will increase about 10 to 20 times. One reason that I can think of is some kind of overhead in the MTS for the components, but that is my guess.
 
MTS certainly adds an overhead, mostly when your MTS machine is remote: you're basically doing DCOM and you're potentially sharing the server with any number of other users.

DCOM communicates at network speeds, out-of-process COM is faster, in-process fastest. One way to improve DCOM performance is to reduce the number of round trips. So if you have five properties to set, write a Sub that takes all five property values and call that instead, reducing the number of (slow) trips by 5.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top