summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Anderson <ejona86@gmail.com>2014-07-03 14:07:47 -0700
committerEric Anderson <ejona86@gmail.com>2014-07-03 14:09:21 -0700
commitb6760656190618d5e0f82ff3555b081afb24450d (patch)
treee9b80cdd7a180e4a0f4ebb9b58113a0c989394d8
parent35e0024a8dcd074de8879545847721c983a087b2 (diff)
downloadcapset-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.go4
1 files changed, 0 insertions, 4 deletions
diff --git a/capset.go b/capset.go
index ae77571..a7e6171 100644
--- a/capset.go
+++ b/capset.go
@@ -356,9 +356,5 @@ func main() {
if err != nil {
log.Println(err)
}
- err = outfile.Sync()
- if err != nil {
- log.Println(err)
- }
}
}