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

lmdb: methods to support custom comparison Txn.SetCmp(), Txn.SetCmpDup() #27

Draft
wants to merge 12 commits into
base: master
Choose a base branch
from

Commits on Dec 6, 2023

  1. 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.
    bmatsuo authored and fiatjaf committed Dec 6, 2023
    Configuration menu
    Copy the full SHA
    e2d734d View commit details
    Browse the repository at this point in the history
  2. lmdb: godoc for CmpFunc

    bmatsuo authored and fiatjaf committed Dec 6, 2023
    Configuration menu
    Copy the full SHA
    8e459ec View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    9a4425d View commit details
    Browse the repository at this point in the history
  4. lmdb_cmp: add stub simulating dynamic dispatch of compare functions

    Optimization in the compiler may be defeating the simulation to some
    degree.
    bmatsuo authored and fiatjaf committed Dec 6, 2023
    Configuration menu
    Copy the full SHA
    8150b04 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    ea20213 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    7fc68d7 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    92cfd8c View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    847969d View commit details
    Browse the repository at this point in the history
  9. clean up the lmdb_cmp_simple example

    bmatsuo authored and fiatjaf committed Dec 6, 2023
    Configuration menu
    Copy the full SHA
    0073092 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    5263f22 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    7a51e6a View commit details
    Browse the repository at this point in the history
  12. update dependencies.

    fiatjaf committed Dec 6, 2023
    Configuration menu
    Copy the full SHA
    2071547 View commit details
    Browse the repository at this point in the history