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

Prepopulate log file handles #274

Merged
merged 3 commits into from
Jun 5, 2020
Merged

Prepopulate log file handles #274

merged 3 commits into from
Jun 5, 2020

Conversation

peterfreiling
Copy link
Contributor

In ASA's reference data workflow, we must create new FASTER instances and thus new devices regularly. We also must prepopulate log file handles to satisfy some requirements for our multi-tentant service. Currently, we create a new LocalStorageDevice, then add each file handle with GetOrAddHandle, which inserts to a ConcurrentDictionary, and when the count of these files reach the thousands, this prepopulation can take upwards of 10s of seconds. This change allows us to prepopulate the ConcurrentDictionary with a flat array, eliminating this latency.

@peterfreiling peterfreiling requested a review from badrishc June 4, 2020 16:36
@badrishc badrishc merged commit ffc2c30 into master Jun 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants