From 338925aef45d8ec960e1ba4d160dbb3848bd7a9d Mon Sep 17 00:00:00 2001 From: Jakob Unterwurzacher Date: Wed, 16 Sep 2015 19:35:40 +0200 Subject: [PATCH] Set GOMAXPROCS = 4 Immediate speedup from 70MB/s to 80MB/s on streaming write. Enables later parallelization. --- main.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/main.go b/main.go index 30deb1e..f974e7b 100644 --- a/main.go +++ b/main.go @@ -8,6 +8,7 @@ import ( "path/filepath" "time" "encoding/hex" + "runtime" "github.com/rfjakob/gocryptfs/cluefs_frontend" "github.com/rfjakob/gocryptfs/pathfs_frontend" @@ -63,6 +64,8 @@ func initDir(dirArg string) { } func main() { + runtime.GOMAXPROCS(4) + // Parse command line arguments var debug, init, zerokey, fusedebug bool