VMware {code} Community
zerovoid
Contributor
Contributor

Speed Up Host Connect Time

Is there any way to decrease the amount of time it takes to connect to the host?

Disable SSL, etc.

Reply
0 Kudos
1 Reply
admin
Immortal
Immortal

Disabling SSL may give you a small gain, but probably not a significant decrease.

In general, Host_Connect() will be an expensive operation, since it performs a lot of initialization. As a best practice, we recommend that you save and reuse host handles whenever possible.

For example, if your program is going to only connect to one host, you should have the program connect to that host up front, and then perform whatever operations you wish on the host, and then call Host_Disconnect() during clean up when the program is shutting down.