aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
| * | | | Minor bolt compact revisionsBen Johnson2016-09-054-113/+196
| | | | |
| * | | | Merge branch 'compact-db' of https://github.com/vincent-petithory/bolt into ↵Ben Johnson2016-09-012-0/+360
| |\ \ \ \ | | | | | | | | | | | | | | | | | | vincent-petithory-compact-db
| | * | | | compact: allow splitting transactions for large datasetsVincent Petithory2015-11-191-18/+45
| | | | | |
| | * | | | cli: add compact commandVincent Petithory2015-11-192-0/+333
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | compact rewrites a bolt db, recursively walking its keys in byte order.
* | | | | | Merge pull request #589 from nekto0n/masterBen Johnson2016-09-051-1/+1
|\ \ \ \ \ \ | |_|_|_|_|/ |/| | | | | Lower number of allocation in freelist.reindex()
| * | | | | Lower number of allocation in freelist.reindex()Nikita Vetoshkin2016-09-051-1/+1
|/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Here is a profile taken etcd. Before: 10924 10924 (flat, cum) 4.99% of Total . . 230: . . 231:// reindex rebuilds the free cache based on available and pending free lists. . . 232:func (f *freelist) reindex() { . . 233: f.cache = make(map[pgid]bool) . . 234: for _, id := range f.ids { 10924 10924 235: f.cache[id] = true . . 236: } . . 237: for _, pendingIDs := range f.pending { . . 238: for _, pendingID := range pendingIDs { . . 239: f.cache[pendingID] = true . . 240: } After: 1 1 (flat, cum) 0.0017% of Total . . 228: f.reindex() . . 229: } . . 230: . . 231:// reindex rebuilds the free cache based on available and pending free lists. . . 232:func (f *freelist) reindex() { 1 1 233: f.cache = make(map[pgid]bool, len(f.ids)) . . 234: for _, id := range f.ids { . . 235: f.cache[id] = true . . 236: } . . 237: for _, pendingIDs := range f.pending { . . 238: for _, pendingID := range pendingIDs {
* | | | | Merge pull request #577 from bouk/patch-1Ben Johnson2016-08-311-1/+1
|\ \ \ \ \ | | | | | | | | | | | | Fix typo (Tx -> DB)
| * | | | | Fix typo (Tx -> DB)Bouke van der Bijl2016-07-221-1/+1
| | |_|/ / | |/| | |
* | | | | Merge pull request #584 from benbjohnson/go17Ben Johnson2016-08-183-6/+23
|\ \ \ \ \ | |_|/ / / |/| | | | Fix Go 1.7 pointer reference bug
| * | | | fix Go 1.7 pointer reference bugBen Johnson2016-08-183-6/+23
|/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit fixes a bug where page end-of-header pointers were being converted to byte slices even when the pointer did not point to allocated memory. This occurs with pages that have a `page.count` of zero. Note: This was not an issue in Go 1.6 but the new Go 1.7 SSA backend handles `nil` checks differently. See https://github.com/golang/go/issues/16772
* | | | Merge pull request #579 from asdine/masterBen Johnson2016-07-301-1/+1
|\ \ \ \ | |/ / / |/| | | Update description of project using BoltDB
| * | | Update description of project using BoltDBAsdine El Hrychy2016-07-301-1/+1
|/ / /
* | | Merge pull request #573 from evnix/patch-1Ben Johnson2016-07-191-0/+1
|\ \ \ | | | | | | | | added a BoltDB related project
| * | | added a BoltDB related projectAvinash D'Silva2016-07-171-0/+1
|/ / /
* | | Merge pull request #567 from pankajkhairnar/pankajkhairnar-new-projectBen Johnson2016-07-071-0/+1
|\ \ \ | | | | | | | | Added new project name in the list of projects using BoldDB
| * | | Added new project which is using BoldDBPankaj khairnar2016-06-121-0/+1
| | | |
* | | | Merge pull request #570 from emersion/patch-1Ben Johnson2016-07-071-1/+1
|\ \ \ \ | | | | | | | | | | Fixes build error in README code
| * | | | Fixes build error in README codeemersion2016-06-171-1/+1
|/ / / /
* | | | Merge pull request #569 from ifraixedes/patch-1Ben Johnson2016-06-161-1/+0
|\ \ \ \ | |/ / / |/| | | Remove skydb of the README
| * | | Remove skydb of the READMEIvan Fraixedes2016-06-161-1/+0
|/ / / | | | | | | I think that SkyDB is over, I could find any link to the project.
* | | READMEBen Johnson2016-06-071-1/+1
| | |
* | | Merge pull request #565 from joe2far/patch-1Ben Johnson2016-06-071-1/+1
|\ \ \ | | | | | | | | Fixed typo in README
| * | | Fixed typo in READMEJoe Farrell2016-06-031-1/+1
| | | |
* | | | Merge pull request #563 from dankomiocevic/patch-1Ben Johnson2016-06-071-0/+1
|\ \ \ \ | |/ / / |/| | | Add MuLiFS to the list of projects using Bolt.
| * | | Add MuLiFS to the list of projects using Bolt.Danko Miocevic2016-05-261-0/+1
|/ / /
* | / v1.2.1Ben Johnson2016-05-160-0/+0
| |/ |/|
* | Merge pull request #556 from xyproto/masterBen Johnson2016-05-091-0/+2
|\ \ | | | | | | Add SimpleBolt and Algernon
| * | Add SimpleBolt and AlgernonAlexander F Rødseth2016-05-041-0/+2
|/ /
* | Merge branch 'cyphar-548-fix-errors-with-unsynced-metadata'Ben Johnson2016-04-243-49/+98
|\ \
| * | add additional meta page testsBen Johnson2016-04-243-49/+71
| | |
| * | Merge branch '548-fix-errors-with-unsynced-metadata' of ↵Ben Johnson2016-04-241-11/+38
|/| | | | | | | | | | | https://github.com/cyphar/boltdb into cyphar-548-fix-errors-with-unsynced-metadata
| * | db: fix recovery from unsynced metadataAleksa Sarai2016-04-201-11/+38
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bolt stores the two latest transactions' metadata, but previously did not recover from validation failures in the latest by using the second latest. Fix this by correctly handling validation failures in db.go, as well as returning the metadata with highest txid which is also valid in DB.meta(). Signed-off-by: Aleksa Sarai <asarai@suse.de>
* | | Merge branch 'LK4D4-pool_allocate'Ben Johnson2016-04-222-3/+36
|\ \ \ | |/ / |/| |
| * | move page pool to dbBen Johnson2016-04-222-13/+20
| | |
| * | Merge branch 'pool_allocate' of https://github.com/LK4D4/bolt into ↵Ben Johnson2016-04-222-4/+30
|/| | | | | | | | | | | LK4D4-pool_allocate
| * | Use sync.Pool for small pages in db.allocateAlexander Morozov2016-01-282-4/+30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Benchmark results: benchmark old ns/op new ns/op delta BenchmarkDBBatchAutomatic-4 2552625 2485200 -2.64% BenchmarkDBBatchSingle-4 59632698 50757603 -14.88% BenchmarkDBBatchManual10x100-4 2564789 2452735 -4.37% benchmark old allocs new allocs delta BenchmarkDBBatchAutomatic-4 10199 10202 +0.03% BenchmarkDBBatchSingle-4 56642 56653 +0.02% BenchmarkDBBatchManual10x100-4 5986 5995 +0.15% benchmark old bytes new bytes delta BenchmarkDBBatchAutomatic-4 433587 382462 -11.79% BenchmarkDBBatchSingle-4 32504533 16308931 -49.83% BenchmarkDBBatchManual10x100-4 1362370 881765 -35.28% Signed-off-by: Alexander Morozov <lk4d4@docker.com>
* | | Merge pull request #550 from ChrisHines/windows-remove-lockBen Johnson2016-04-071-3/+3
|\ \ \ | | | | | | | | Delay clearing db.path until just before db.close returns.
| * | | Wait to clear db.path until just before db.close returns.Chris Hines2016-04-071-3/+3
|/ / / | | | | | | | | | | | | The Windows version of funlock needs the db.path to delete the corresponding .lock file.
* | | Merge pull request #546 from josephspurrier/masterBen Johnson2016-03-251-0/+1
|\ \ \ | | | | | | | | Add GoWebApp as a project that uses Bolt.
| * | | Update README.mdJoseph Spurrier2016-03-251-0/+1
| | | | | | | | | | | | Added GoWebApp as a project that uses Bolt.
* | | | Merge pull request #545 from benbjohnson/slice-capacityBen Johnson2016-03-252-2/+42
|\ \ \ \ | |/ / / |/| | | Set slice capacity
| * | | set slice capacityBen Johnson2016-03-252-2/+42
|/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit sets the capacity on slices returned from `Bucket.Get()` to match the slice length. Previously the capacity would be the size of the mmap max size. This does not cause any backwards compatibility issues, however, it does allow users to `append()` to the returned slice since that will cause Go to realloc a new slice on the heap. Fixes #544
* | | Merge pull request #542 from boltdb/remove-drone-badgeBen Johnson2016-03-231-1/+1
|\ \ \ | | | | | | | | Remove badge
| * | | remove badgeBen Johnson2016-03-231-1/+1
|/ / / | | | | | | Remove the Drone.IO badge while setting up new test infrastructure.
* | | Merge pull request #540 from erock2112/patch-1Ben Johnson2016-03-221-0/+2
|\ \ \ | | | | | | | | Add note about Go RFC3339Nano sortability to README
| * | | Add note about Go RFC3339Nano sortability to READMEEric Boren2016-03-221-0/+2
|/ / / | | | | | | RFC3339 is sortable, but RFC3339Nano is not, because it does not use a fixed number of digits after the decimal.
* | | Merge pull request #532 from asdine/project-listBen Johnson2016-03-221-2/+3
|\ \ \ | | | | | | | | Update README.md
| * \ \ Merge remote-tracking branch 'boltdb/master' into project-listAsdine El Hrychy2016-03-228-64/+81
| |\ \ \ | |/ / / |/| | | | | | | | | | | # Conflicts: # README.md
* | | | v1.2.0Ben Johnson2016-03-210-0/+0
| | | |
* | | | Merge pull request #537 from crowdriff/masterBen Johnson2016-03-211-0/+1
|\ \ \ \ | | | | | | | | | | Adding "lru" to list of projects using Bolt.