-
Notifications
You must be signed in to change notification settings - Fork 6.3k
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
Fix performance bug in Java API get() functions when key is NotFound #13049
Open
alanpaxton
wants to merge
8
commits into
facebook:main
Choose a base branch
from
evolvedbinary:eb/expensive-jni-misses-13023-jmh-fix
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Fix performance bug in Java API get() functions when key is NotFound #13049
alanpaxton
wants to merge
8
commits into
facebook:main
from
evolvedbinary:eb/expensive-jni-misses-13023-jmh-fix
Commits on Nov 19, 2024
-
Add jmh benchmarks that test key not found
Performance of NotFound case has been bad - see facebook#13023 Some jmh tests to measure this, prior to fixing it.
Configuration menu - View commit details
-
Copy full SHA for 0ada1be - Browse repository at this point
Copy the full SHA 0ada1beView commit details -
Configuration menu - View commit details
-
Copy full SHA for af798ac - Browse repository at this point
Copy the full SHA af798acView commit details -
Configuration menu - View commit details
-
Copy full SHA for 60f2042 - Browse repository at this point
Copy the full SHA 60f2042View commit details -
Fix NotFound performance for Java get()
Handling NotFound should not go through the (horribly slow) C++ exception mechanism, because it is the expected/standard path in many cases. Change KVException::ThrowOnError to return a status when ok() or NotFound(), and the caller has to handle that status. Retain the exception mechanism for exceptions, it does simplifiy the flow and reduce checking.
Configuration menu - View commit details
-
Copy full SHA for b67b1b8 - Browse repository at this point
Copy the full SHA b67b1b8View commit details -
NotFound performance of Java API transactional get
get / getDirect / getForUpdate Repair performance by avoiding the C++ exception path on NotFound. Previous commit on this change altered behaviour of ROCKSDB_NAMESPACE::KVException::ThrowOnError to not throw on NotFound, this change is also necessary to reinstate correct behaviour.
Configuration menu - View commit details
-
Copy full SHA for cc837a8 - Browse repository at this point
Copy the full SHA cc837a8View commit details -
Fix getDirect() Java performance on NotFound
Add extra tests for getDirect() —> NotFound where a potential gap existed Add a couple of extra tests around NotFound for comfort
Configuration menu - View commit details
-
Copy full SHA for 6eb8ae9 - Browse repository at this point
Copy the full SHA 6eb8ae9View commit details -
Configuration menu - View commit details
-
Copy full SHA for 527526e - Browse repository at this point
Copy the full SHA 527526eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 2d826bd - Browse repository at this point
Copy the full SHA 2d826bdView commit details
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.