puniverse / quasar

Fibers, Channels and Actors for the JVM

Home Page:http://docs.paralleluniverse.co/quasar/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Deep stack will Cost more CPU

yiYangGit opened this issue · comments

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

Building a Fiber-Pool will help.

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