puniverse / quasar

Fibers, Channels and Actors for the JVM
http://docs.paralleluniverse.co/quasar/
Other
4.56k stars 575 forks source link

Deep stack will Cost more CPU #316

Open yiYangGit opened 5 years ago

yiYangGit commented 5 years ago

hello ,quasar is very nice !!!! thank your contribution ,The greatest thanks and admiration

I'm working on a project using nio and filber Let's use synchronous method calls to invoke nio support A fibler may be suspended or restored frequently but when we in Deep stack call Strand.yield(); or Strand.park(); ... it cast cpu time Increases as the stack grows
A depth of more than 1,000 would be more serious Can it be optimized ? Hope for a solution

-------thank you

linkerlin commented 5 years ago

Building a Fiber-Pool will help.

jkjunior commented 4 years ago

@linkerlin How can I create and set a Fiber pool size?