forked from bmatsuo/lmdb-go
-
Notifications
You must be signed in to change notification settings - Fork 7
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
lmdb: methods to support custom comparison Txn.SetCmp(), Txn.SetCmpDup() #27
Draft
fiatjaf
wants to merge
12
commits into
PowerDNS:master
Choose a base branch
from
fiatjaf:custom-comparators
base: master
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.
Commits on Dec 6, 2023
-
lmdb: methods to support custom comparison Txn.SetCmp(), Txn.SetCmpDup()
The methods bind the mdb_set_compare and mdb_set_dupsort functions respectively. The methods are very hard to call. They require C function pointers as arguments and hooking Go functions from custom C functions is tricky, which lots of overhead/boilerplate.
Configuration menu - View commit details
-
Copy full SHA for e2d734d - Browse repository at this point
Copy the full SHA e2d734dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 8e459ec - Browse repository at this point
Copy the full SHA 8e459ecView commit details -
Configuration menu - View commit details
-
Copy full SHA for 9a4425d - Browse repository at this point
Copy the full SHA 9a4425dView commit details -
lmdb_cmp: add stub simulating dynamic dispatch of compare functions
Optimization in the compiler may be defeating the simulation to some degree.
Configuration menu - View commit details
-
Copy full SHA for 8150b04 - Browse repository at this point
Copy the full SHA 8150b04View commit details -
Configuration menu - View commit details
-
Copy full SHA for ea20213 - Browse repository at this point
Copy the full SHA ea20213View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7fc68d7 - Browse repository at this point
Copy the full SHA 7fc68d7View commit details -
Configuration menu - View commit details
-
Copy full SHA for 92cfd8c - Browse repository at this point
Copy the full SHA 92cfd8cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 847969d - Browse repository at this point
Copy the full SHA 847969dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 0073092 - Browse repository at this point
Copy the full SHA 0073092View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5263f22 - Browse repository at this point
Copy the full SHA 5263f22View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7a51e6a - Browse repository at this point
Copy the full SHA 7a51e6aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 2071547 - Browse repository at this point
Copy the full SHA 2071547View 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.