Open samuell opened 11 years ago
@fxsjy ping
@fxsjy How to correctly use PCNNetwork please? I get following error:
panic: runtime error: assignment to entry in nil map
goroutine 1 [running]: runtime.panic(0xbf020, 0x1cc0fd) /usr/local/Cellar/go/1.2/libexec/src/pkg/runtime/panic.c:266 +0xb6
How can I contact you? I need more advices if it was possible
Cool project :)
Just wondering: So, you are not using any go-routines or channels, to do the threading (didn't see any, in my very brief look)?
I have been testing a bit with how to speedup stuff that passes around strings between threads, and found it very useful to set up the size for the buffers in the channels ... to something like 512 items etc ...
(I wrote up a bit about my experiment here: http://saml.rilspace.org/go-speedup-with-threading-for-line-by-line-string-processing ... and the threaded code is here: https://gist.github.com/samuell/5829991 )
Also, I heard that it is adviseable to set runtime.GOMAXPROCS to number of cores - 1, as a rule of thumb (maybe you do that already, so just saying, just in case) ...