[racket] Thread creation slow?
When I played around with it, I remember that the issue was that
threads created a lot of garbage, and made collecting garbage slow. I
could create about 400 times as many boxes in a chain and get the same
gc time.
This lead to a quadratic(ish) runtime for creating a bunch of threads,
as each later GC took more time.
On Fri, Aug 10, 2012 at 8:51 AM, Asumu Takikawa <asumu at ccs.neu.edu> wrote:
> Hi all,
>
> On IRC the other day, this blog article about Racket came up:
> http://cxwangyi.wordpress.com/2012/07/29/chinese-whispers-in-racket-and-go/
>
> In it, the author shows a program that creates many threads & channels
> and then daisy-chains some communication through them. The Racket
> version is significantly slower than the Go version (1 min. vs. 1 sec.).
>
> Is there a performance bug with thread creation here? Alternatively, is
> there a different way of coding the example that would make it faster?
>
> Cheers,
> Asumu
> ____________________
> Racket Users list:
> http://lists.racket-lang.org/users