puniverse / comsat

Fibers and actors for web development
docs.paralleluniverse.co/comsat
Other
598 stars 103 forks source link

Tune the number of dispatch threads dedicated to the reactor. #37

Closed azell closed 9 years ago

azell commented 9 years ago

The default of 10 I/O threads is likely overkill for an httpclient instance. Instead allocate 1 thread per available processor.

pron commented 9 years ago

1 per core is just as arbitrary and probably overkill as well. This number may have been left from a time when the Apache async client wasn't truly async. Should be changed to 1 or 2.

circlespainter commented 9 years ago

Thanks!