Skip to content

Commit

Permalink
reverting to original buffer size 4MB
Browse files Browse the repository at this point in the history
  • Loading branch information
alespour committed Jul 11, 2019
1 parent 03bf644 commit a96a43b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cmd/bulk_data_gen/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ func main() {
log.Printf("Using config file %s\n", configFile)
}

out := bufio.NewWriterSize(os.Stdout, 16<<20)
out := bufio.NewWriterSize(os.Stdout, 4<<20)
defer out.Flush()

var sim common.Simulator
Expand Down
2 changes: 1 addition & 1 deletion cmd/bulk_load_influx/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -486,7 +486,7 @@ func scan(itemsPerBatch int, doneCh chan int) (int64, int64, int64) {

var batchItemCount uint64

scanner := bufio.NewScanner(bufio.NewReaderSize(os.Stdin, 16*1024*1024))
scanner := bufio.NewScanner(bufio.NewReaderSize(os.Stdin, 4*1024*1024))
outer:
for scanner.Scan() {
if itemsRead == itemLimit {
Expand Down

0 comments on commit a96a43b

Please sign in to comment.