syncthing/internal/db
Jakob Borg c0d02a65c3 Reduce allocations during iteration
Reuses key byte slices to reduce allocations:

	benchmark                    old allocs     new allocs     delta
	Benchmark10kReplace          178112         168615         -5.33%
	Benchmark10kUpdateChg        567954         561557         -1.13%
	Benchmark10kUpdateSme        238691         228680         -4.19%
	Benchmark10kNeed2k           105382         103383         -1.90%
	Benchmark10kHaveFullList     60230          60230          +0.00%
	Benchmark10kGlobal           237484         227493         -4.21%

	benchmark                    old bytes     new bytes     delta
	Benchmark10kReplace          8725368       7661788       -12.19%
	Benchmark10kUpdateChg        58155152      57441025      -1.23%
	Benchmark10kUpdateSme        16130875      14996717      -7.03%
	Benchmark10kNeed2k           6561685       6338283       -3.40%
	Benchmark10kHaveFullList     7611112       7611135       +0.00%
	Benchmark10kGlobal           21415056      20300723      -5.20%
2015-05-24 13:08:14 +02:00
..
testdata Rename package internal/files to internal/db 2015-01-12 20:57:22 +01:00
.gitignore Rename package internal/files to internal/db 2015-01-12 20:57:22 +01:00
blockmap.go Run vet and lint. Make us lint clean. 2015-04-29 10:38:02 +02:00
blockmap_test.go MPLv2 2015-03-17 16:02:27 +01:00
concurrency_test.go Skip boring concurrency test in internal/db 2015-05-07 09:57:49 +02:00
debug.go MPLv2 2015-03-17 16:02:27 +01:00
leveldb.go Reduce allocations during iteration 2015-05-24 13:08:14 +02:00
leveldb_test.go MPLv2 2015-03-17 16:02:27 +01:00
leveldb_xdr.go Update XDR dependency (fixes #1606) 2015-04-08 14:49:29 +02:00
namespaced.go Virtual mtime support for environments that don't support altering mtimes (fixes #831) 2015-05-13 14:57:29 +00:00
namespaced_test.go Reset a namespaced kv-store 2015-05-13 14:41:47 +02:00
set.go Virtual mtime support for environments that don't support altering mtimes (fixes #831) 2015-05-13 14:57:29 +00:00
set_test.go Update tests for version vectors 2015-03-25 23:10:33 +01:00
truncated.go Improve ItemStarted/ItemFinished events 2015-04-14 23:31:39 +09:00
virtualmtime.go Refactor GetMtime for early return 2015-05-14 08:26:21 +02:00
virtualmtime_test.go Virtual mtime support for environments that don't support altering mtimes (fixes #831) 2015-05-13 14:57:29 +00:00