Skip to content

Commit 5228387

Browse files
committed
cmd/acme: raise block sizes, for larger Edit cmds
1 parent c3bbda4 commit 5228387

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

‎cmd/acme/internal/bufs/buf.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import (
66
"9fans.net/go/cmd/acme/internal/runes"
77
)
88

9-
const Len = 8 * 1024
9+
const Len = 32 * 1024
1010
const RuneLen = Len / runes.RuneSize
1111

1212
var runesPool = sync.Pool{

‎cmd/acme/internal/disk/disk.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import (
1515

1616
const blockincr = 256
1717

18-
const maxblock = 8 * 1024
18+
const maxblock = 32 * 1024
1919

2020
var disk *Disk
2121

0 commit comments

Comments
 (0)