Replacing byte[] and ByteBuffer compareTo methods with JDK builtins#199
Replacing byte[] and ByteBuffer compareTo methods with JDK builtins#199danielcranford wants to merge 1 commit intolmdbjava:masterfrom
Conversation
|
Ahh, missed the fact |
0a78414 to
a1162e1
Compare
|
This is a more complicated proposal than it first appears. The PR modifies two implementations of the LMDB native code does not call the provided comparator. While a user is free to provide their own Java-side comparator when creating a
Where we run into issues is when using an There are a few options available, such as better clarifying the requirements in the JavaDocs of |
|
After thinking about this some more I believe the better approach is to store a mandatory Storing a It would be natural to only accept a single The only downside I can presently see to this is it would represent a breaking change by removing the aforementioned method and some minor variations to the I'll leave this PR open as a reminder to address this when preparing 0.9.0. |
|
Following the release of 0.8.3 I switched the target development version to 0.9.0 and implemented my prior comment. The main changes are:
I decided against making other |
Resolves #198