-
Notifications
You must be signed in to change notification settings - Fork 31
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
Evaluation of Prefetching changes #582
Comments
Prefetch MechanismThe Prefetch mechanism of LBM SDK is invoked when a balance inquiry is made for a particular account. By accessing the account in parallel with responding to the balance inquiry, it aims to put the record to be returned in the account inquiry request, which is expected shortly thereafter, on the cache or buffer pool on memory. PreliminariesThis mechanism is implemented in the following layers:
Their respective calling relations are as follows: Note that the storage layer is a wrapper structure and calls Therefore, by measuring benchmarks in cases with and without such prefetch behavior before MethodI benchmark the case of executing
ResultThe following table is the performance of
The following is a calculation of the
Note that this result shows the same trend when the order of execution is switched. ConclusionI can think of no good reason why the prefetch case would be so slow 🤔 |
Summary
Reconsideration of prefetching behavior. This is a mechanism to increase OS and DB cache hit rates by performing reads in advance of subsequent API calls when an API is executed.
This task is to sort out useful features in order to reduce the differences between lbm-sdk and cosmos-sdk.
Parent: #549
For Admin Use
The text was updated successfully, but these errors were encountered: