Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question about channels / go-routines #1

Open
samuell opened this issue Jul 18, 2013 · 2 comments
Open

Question about channels / go-routines #1

samuell opened this issue Jul 18, 2013 · 2 comments

Comments

@samuell
Copy link

samuell commented Jul 18, 2013

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) ...

@cisary
Copy link

cisary commented Feb 26, 2014

@fxsjy ping

@cisary
Copy link

cisary commented Feb 26, 2014

@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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants