syncthing/lib
greatroar 663106ef6e
lib/fs: Optimize WindowsInvalidFilename (#8687)
Replaced strings.Split with the new strings.Cut, which doesn't allocate.

name                           old time/op    new time/op    delta
WindowsInvalidFilenameValid-8     154ns ± 2%      89ns ± 0%   -42.09%  (p=0.000 n=10+9)
WindowsInvalidFilenameNUL-8       124ns ± 2%     124ns ± 1%      ~     (p=0.371 n=8+10)

name                           old alloc/op   new alloc/op   delta
WindowsInvalidFilenameValid-8     16.0B ± 0%      0.0B       -100.00%  (p=0.000 n=10+10)
WindowsInvalidFilenameNUL-8       19.0B ± 0%      3.0B ± 0%   -84.21%  (p=0.000 n=10+10)

name                           old allocs/op  new allocs/op  delta
WindowsInvalidFilenameValid-8      1.00 ± 0%      0.00       -100.00%  (p=0.000 n=10+10)
WindowsInvalidFilenameNUL-8        2.00 ± 0%      1.00 ± 0%   -50.00%  (p=0.000 n=10+10)
2022-11-21 12:58:00 +01:00
..
api lib/api: Add /rest/noauth/health health-check (fixes #8430) (#8585) 2022-10-06 21:28:49 +02:00
assets lib/assets: MIME types, time formats (#8351) 2022-05-22 22:10:18 +02:00
beacon all: Unused args, retvals, assignments (#7926) 2021-09-08 00:11:16 +02:00
build all: Add build constants for runtime.GOOS comparisons (#8442) 2022-07-28 19:36:39 +02:00
config all: Support syncing extended attributes (fixes #2698) (#8513) 2022-09-14 09:50:55 +02:00
connections lib/connections: Use adaptive write size for rate limited connections (fixes #8630) (#8631) 2022-11-03 15:44:46 +01:00
db all: Support syncing extended attributes (fixes #2698) (#8513) 2022-09-14 09:50:55 +02:00
dialer lib: Removal global connection registry (#8254) 2022-04-09 16:04:56 +02:00
discover all: Fix various user-facing and non-user-facing typos (#8509) 2022-08-23 15:44:11 +02:00
events all: Remove unused method receivers (#8462) 2022-07-28 17:32:45 +02:00
fs lib/fs: Optimize WindowsInvalidFilename (#8687) 2022-11-21 12:58:00 +01:00
ignore all: Fix various user-facing and non-user-facing typos (#8509) 2022-08-23 15:44:11 +02:00
locations gui, api: Show internal config and state paths (fixes #8323) (#8324) 2022-08-10 08:25:13 +02:00
logger cmd/syncthing, lib/logger: Add date to default log format (fixes #8272) (#8273) 2022-04-15 07:46:14 +04:00
model lib/model: Correctly set xattrs on temp files (fixes #8667) (#8670) 2022-11-11 11:49:15 +01:00
nat all: Unused parameter should be replaced by underscore (#8464) 2022-07-28 17:17:29 +02:00
osutil lib: Factor out getting IP address from net.Addr (#8538) 2022-09-14 08:44:46 +02:00
pmp lib: Factor out getting IP address from net.Addr (#8538) 2022-09-14 08:44:46 +02:00
protocol lib/protocol: Ignore inode time when xattr&ownership is ignored (fixes #8654) (#8655) 2022-11-08 08:36:41 +01:00
rand all: Remove unused method receivers (#8462) 2022-07-28 17:32:45 +02:00
rc all: Remove unused method receivers (#8462) 2022-07-28 17:32:45 +02:00
relay cmd/strelaysrv: Add optional auth token (fixes #3987) (#8561) 2022-10-01 20:41:02 +01:00
scanner lib/scanner: More sensible debug output (#8596) 2022-10-13 19:32:58 +02:00
sha256 all: Use crypt/rand through its buffered version, but not in benchmarks (#7420) 2021-03-02 19:17:20 +01:00
signature all: Use crypt/rand through its buffered version, but not in benchmarks (#7420) 2021-03-02 19:17:20 +01:00
stats all: Truncate some timestamps (fixes #7457) (#7459) 2021-03-12 10:35:10 +01:00
stun all: Remove unused method receivers (#8462) 2022-07-28 17:32:45 +02:00
svcutil all: Remove unused method receivers (#8462) 2022-07-28 17:32:45 +02:00
sync lib/sync: Make the clock a function pointer 2021-11-27 15:35:07 +01:00
syncthing all: Fix various user-facing and non-user-facing typos (#8509) 2022-08-23 15:44:11 +02:00
testutils all: Remove unused method receivers (#8462) 2022-07-28 17:32:45 +02:00
tlsutil lib/tlsutil: Use crypto.Signer interface (#8526) 2022-09-09 14:22:38 +02:00
upgrade all: Fix various user-facing and non-user-facing typos (#8509) 2022-08-23 15:44:11 +02:00
upnp lib: Factor out getting IP address from net.Addr (#8538) 2022-09-14 08:44:46 +02:00
ur lib/ur: Properly initialize map in failure data (fixes #8479) (#8480) 2022-08-03 10:41:26 +02:00
util all: Unused parameter should be replaced by underscore (#8464) 2022-07-28 17:17:29 +02:00
versioner lib/versioner: Fix error in Trashcan restore (fixes: #7965) (#8549) 2022-09-20 11:34:15 +02:00
watchaggregator all: Fix various user-facing and non-user-facing typos (#8509) 2022-08-23 15:44:11 +02:00
weakhash all: Remove usage of deprecated io/ioutil (#7971) 2021-11-22 08:59:47 +01:00