dongshi1868 2009-11-14 03:59
浏览 17

goroutine的最小工作量

Does anyone know approximately what the minimum work size is needed in order for a goroutine to be beneficial (assuming that there are free cores for the work to be offloaded to)?

  • 写回答

4条回答 默认 最新

  • dongxi5423 2009-11-14 04:33
    关注

    I've been plodding through project euler with Go. While I don't have a definite answer for you I found the goroutine-based primality sieve in the Go docs to be an order of magnitude slower than simply checking each number for primality. Setting GOMAXPROCS to a higher value didn't help, either.

    评论

报告相同问题?