-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Assume every brain can use the kvbrain's strategy for arbitrary-length prefixes and design the interfaces around it. Overall, this vastly simplifies the implementations. As part of this, switch from the CGo sqlite3 database/sql driver to zombiezen.com/go/sqlite. While the code to interact with SQL this way is substantially more verbose, the execution is much more efficient. Depending on optimizing/rewriting kvbrain, we might stay with SQLite3 after all. Also introduce various helper packages to share some details between the new sqlite implementation and the existing kvbrain one, given that they now use similar techniques for key encoding and term writing. There are many further opportunities for refactoring. This most likely will not be the final change to the brain interfaces. Fixes #39. Fixes #41. Fixes #42.
- Loading branch information
1 parent
6c32f84
commit a9eded0
Showing
42 changed files
with
3,649 additions
and
2,827 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.