commit | 9462569d8d4b07c9a73deb9ad37b2e79f1336e93 | [log] [tgz] |
---|---|---|
author | Oliver, Jonathan <git@jonathanoliver.com> | Fri May 30 11:30:55 2014 -0600 |
committer | Oliver, Jonathan <git@jonathanoliver.com> | Fri May 30 11:30:55 2014 -0600 |
tree | e847b87f3e8d5824c44be5621207675edda86f7f | |
parent | 2db628b413bc083a6eecd0bc9bea2bc9e1e052c1 [diff] |
Increased sleep timeout.
diff --git a/reader.go b/reader.go index 3330900..db68058 100644 --- a/reader.go +++ b/reader.go
@@ -52,6 +52,8 @@ break } - time.Sleep(time.Nanosecond) // TODO: research why this *improves* performance + // sleeping increases the batch size which reduces the number of read commits + // which drastically reduces the cost; longer sleeps = larger batches = less expensive commits + time.Sleep(time.Microsecond) } }