Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add timeout cache for getVicVms #673

Merged
merged 1 commit into from
Jun 12, 2019

Conversation

zhoumeina
Copy link
Contributor

It will be serious performance problem when have large scale of vms. That because the propFetcher will invoke getVicVms for more than 10 times. This method will be very slow if large scale of vms.
This pr is focus on introduce a memory cache and set the timeout to no more than 1 min to avoid interact with vc vim 25 interface.

@zhoumeina zhoumeina force-pushed the add_cache_performance branch 2 times, most recently from 269f077 to cbffbee Compare June 12, 2019 00:44
private long timeout;

private ValueObject(Object value, long timeout) {
super();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This line looks not necessary. Please remove it.

@zhoumeina zhoumeina force-pushed the add_cache_performance branch from cbffbee to a4b9961 Compare June 12, 2019 02:50
@zhoumeina zhoumeina merged commit d60ec84 into vmware:master Jun 12, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants