Hi,

Probably later today, I'll do some experimenting with making JRuby threads 
into a ThreadPool instead. This would _probably_ make performance MUCH 
better in cases such as the ruby gems download.

I plan to use doug lea's concurrency library and a standard PooledExecutor 
for this. I will probably have to implement a subclass of Thread and a 
ThreadFactory that enables me to get hold of the current Runnable, but this 
is a small task. My first plan was to try to change as few things as 
possible, but I think it will work better if I rip out what isn't right and 
just try to get it working with pooling instead, so we can see what 
benefits this strategy gives us.

It shouldn't really impair functionality, since if we use an unbounded 
Pool, there will always be enough threads to use.

Any thoughts?

Regards
  Ola Bini




_______________________________________________
Jruby-devel mailing list
Jruby-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jruby-devel

Reply via email to