| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
| | | | | |
|
| |\ \ \ \
| | | | | |
| | | | | |
| | | | | | |
vincent-petithory-compact-db
|
| | | | | | |
|
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
compact rewrites a bolt db, recursively walking its keys
in byte order.
|
|\ \ \ \ \ \
| |_|_|_|_|/
|/| | | | | |
Lower number of allocation in freelist.reindex()
|
|/ / / / /
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
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 {
|
|\ \ \ \ \
| | | | | |
| | | | | | |
Fix typo (Tx -> DB)
|
| | |_|/ /
| |/| | | |
|
|\ \ \ \ \
| |_|/ / /
|/| | | | |
Fix Go 1.7 pointer reference bug
|
|/ / / /
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
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
|
|\ \ \ \
| |/ / /
|/| | | |
Update description of project using BoltDB
|
|/ / / |
|
|\ \ \
| | | |
| | | | |
added a BoltDB related project
|
|/ / / |
|
|\ \ \
| | | |
| | | | |
Added new project name in the list of projects using BoldDB
|
| | | | |
|
|\ \ \ \
| | | | |
| | | | | |
Fixes build error in README code
|
|/ / / / |
|
|\ \ \ \
| |/ / /
|/| | | |
Remove skydb of the README
|
|/ / /
| | |
| | | |
I think that SkyDB is over, I could find any link to the project.
|
| | | |
|
|\ \ \
| | | |
| | | | |
Fixed typo in README
|
| | | | |
|
|\ \ \ \
| |/ / /
|/| | | |
Add MuLiFS to the list of projects using Bolt.
|
|/ / / |
|
| |/
|/| |
|
|\ \
| | |
| | | |
Add SimpleBolt and Algernon
|
|/ / |
|
|\ \ |
|
| | | |
|
|/| |
| | |
| | |
| | | |
https://github.com/cyphar/boltdb into cyphar-548-fix-errors-with-unsynced-metadata
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
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>
|
|\ \ \
| |/ /
|/| | |
|
| | | |
|
|/| |
| | |
| | |
| | | |
LK4D4-pool_allocate
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
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>
|
|\ \ \
| | | |
| | | | |
Delay clearing db.path until just before db.close returns.
|
|/ / /
| | |
| | |
| | |
| | | |
The Windows version of funlock needs the db.path to delete the
corresponding .lock file.
|
|\ \ \
| | | |
| | | | |
Add GoWebApp as a project that uses Bolt.
|
| | | |
| | | |
| | | | |
Added GoWebApp as a project that uses Bolt.
|
|\ \ \ \
| |/ / /
|/| | | |
Set slice capacity
|
|/ / /
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
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
|
|\ \ \
| | | |
| | | | |
Remove badge
|
|/ / /
| | |
| | | |
Remove the Drone.IO badge while setting up new test infrastructure.
|
|\ \ \
| | | |
| | | | |
Add note about Go RFC3339Nano sortability to README
|
|/ / /
| | |
| | | |
RFC3339 is sortable, but RFC3339Nano is not, because it does not use a fixed number of digits after the decimal.
|
|\ \ \
| | | |
| | | | |
Update README.md
|
| |\ \ \
| |/ / /
|/| | |
| | | |
| | | | |
# Conflicts:
# README.md
|
| | | | |
|
|\ \ \ \
| | | | |
| | | | | |
Adding "lru" to list of projects using Bolt.
|