Skip to content

Question about channels / go-routines #1

@samuell

Description

@samuell

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions