Set GOMAXPROCS = 4
Immediate speedup from 70MB/s to 80MB/s on streaming write. Enables later parallelization.
This commit is contained in:
parent
0af3cfcac0
commit
338925aef4
3
main.go
3
main.go
@ -8,6 +8,7 @@ import (
|
|||||||
"path/filepath"
|
"path/filepath"
|
||||||
"time"
|
"time"
|
||||||
"encoding/hex"
|
"encoding/hex"
|
||||||
|
"runtime"
|
||||||
|
|
||||||
"github.com/rfjakob/gocryptfs/cluefs_frontend"
|
"github.com/rfjakob/gocryptfs/cluefs_frontend"
|
||||||
"github.com/rfjakob/gocryptfs/pathfs_frontend"
|
"github.com/rfjakob/gocryptfs/pathfs_frontend"
|
||||||
@ -63,6 +64,8 @@ func initDir(dirArg string) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
|
runtime.GOMAXPROCS(4)
|
||||||
|
|
||||||
// Parse command line arguments
|
// Parse command line arguments
|
||||||
var debug, init, zerokey, fusedebug bool
|
var debug, init, zerokey, fusedebug bool
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user