From b6760656190618d5e0f82ff3555b081afb24450d Mon Sep 17 00:00:00 2001 From: Eric Anderson Date: Thu, 3 Jul 2014 14:07:47 -0700 Subject: 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. --- capset.go | 4 ---- 1 file changed, 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) - } } } -- cgit v1.2.3-70-g09d2