syncthing/lib
Jakob Borg dc32f7f0a3 Reduce allocations in HashFile
By using copyBuffer we avoid a buffer allocation for each block we hash,
and by allocating space for the hashes up front we get one large backing
array instead of a small one for each block. For a 17 MiB file this
makes quite a difference in the amount of memory allocated:

	benchmark               old ns/op     new ns/op     delta
	BenchmarkHashFile-8     102045110     100459158     -1.55%

	benchmark               old allocs     new allocs     delta
	BenchmarkHashFile-8     415            144            -65.30%

	benchmark               old bytes     new bytes     delta
	BenchmarkHashFile-8     4504296       48104         -98.93%
2015-10-27 09:37:27 +01:00
..
auto Fix Raleway font 2015-10-22 21:08:24 +02:00
beacon Remove dead code 2015-10-25 20:46:09 +00:00
config Don't expect ending slash on Windows 2015-10-22 13:49:41 +02:00
connections Our dialer sets up TCP options 2015-10-16 19:18:22 +01:00
db Don't load block list in ...Truncated methods 2015-10-21 23:49:10 +02:00
dialer Our dialer sets up TCP options 2015-10-16 19:18:22 +01:00
discover Remove dead code 2015-10-25 20:46:09 +00:00
events Implement facility based logger, debugging via REST API 2015-10-03 18:09:53 +02:00
fnmatch Use raw strings to describe regexes, avoids double escaping 2015-09-02 22:19:45 +02:00
ignore Correctly report errors encountered parsing ignores (fixes #2309, fixes #2296) 2015-09-29 18:04:18 +02:00
logger Log lines in REST should have lower case keys 2015-10-27 08:22:35 +01:00
model Remove dead code 2015-10-25 20:46:09 +00:00
osutil Revert "Case insensitive renames, part 1" 2015-09-30 21:40:04 +02:00
protocol Don't load block list in ...Truncated methods 2015-10-21 23:49:10 +02:00
rc Patch up HTTP clients 2015-10-15 21:02:17 +01:00
relay Close channel after the client is stopped 2015-10-22 23:09:02 +01:00
scanner Reduce allocations in HashFile 2015-10-27 09:37:27 +01:00
signature stsigtool should use the built in key by default 2015-08-24 16:24:00 +02:00
stats Implement facility based logger, debugging via REST API 2015-10-03 18:09:53 +02:00
symlinks Fix import paths 2015-09-22 19:38:46 +02:00
sync Remove dead code 2015-10-25 20:46:09 +00:00
tlsutil Generate certs with SHA256 signature instead of SHA1 2015-09-09 12:55:17 +02:00
upgrade Fix upgrade tests 2015-10-22 08:35:48 +02:00
upnp Add proxy support (fixes #271) 2015-10-15 21:01:42 +01:00
versioner Implement facility based logger, debugging via REST API 2015-10-03 18:09:53 +02:00