diff options
author | Eric Anderson <ejona86@gmail.com> | 2014-07-03 14:07:47 -0700 |
---|---|---|
committer | Eric Anderson <ejona86@gmail.com> | 2014-07-03 14:09:21 -0700 |
commit | b6760656190618d5e0f82ff3555b081afb24450d (patch) | |
tree | e9b80cdd7a180e4a0f4ebb9b58113a0c989394d8 | |
parent | 35e0024a8dcd074de8879545847721c983a087b2 (diff) | |
download | capset-b6760656190618d5e0f82ff3555b081afb24450d.tar.gz capset-b6760656190618d5e0f82ff3555b081afb24450d.zip |
Remove Sync() from file saving
It was intended to be a Flush(), but even Flush() is unnecessary because
we aren't doing buffered I/O. This speeds up fully solving dimension 3
from 20 seconds to .1 seconds.
-rw-r--r-- | capset.go | 4 |
1 files changed, 0 insertions, 4 deletions
@@ -356,9 +356,5 @@ func main() { if err != nil { log.Println(err) } - err = outfile.Sync() - if err != nil { - log.Println(err) - } } } |