Skip to content

Commit

Permalink
explicit buffer size for phout writer (4MB)
Browse files Browse the repository at this point in the history
  • Loading branch information
direvius committed Dec 27, 2015
1 parent 70471e4 commit 865daeb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion aggregate/phout.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ func NewPhoutResultListener(filename string) (rl ResultListener, err error) {
} else {
phoutFile, err = os.OpenFile(filename, os.O_APPEND|os.O_WRONLY|os.O_CREATE|os.O_SYNC, 0666)
}
writer := bufio.NewWriter(phoutFile)
writer := bufio.NewWriterSize(phoutFile, 1024*1024*4)
ch := make(chan Sample, 65536)
return &PhoutResultListener{
source: ch,
Expand Down

0 comments on commit 865daeb

Please sign in to comment.