Skip to content

Commit

Permalink
Increase buffer size
Browse files Browse the repository at this point in the history
  • Loading branch information
ricardobranco777 committed Dec 31, 2024
1 parent ac09ae2 commit 4b46510
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion restartable.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ func (p *RealProcPidFS) ReadFile(path string) ([]byte, error) {
}
defer unix.Close(fd)

data := make([]byte, 0, 1024)
data := make([]byte, 0, 8192)
for {
if len(data) >= cap(data) {
d := append(data[:cap(data)], 0)
Expand Down

0 comments on commit 4b46510

Please sign in to comment.