quasar icon indicating copy to clipboard operation
quasar copied to clipboard

Deep stack will Cost more CPU

Open yiYangGit opened this issue 6 years ago • 2 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

yiYangGit avatar Oct 27 '18 17:10 yiYangGit

Building a Fiber-Pool will help.

linkerlin avatar Nov 24 '18 10:11 linkerlin

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

jkjunior avatar Aug 07 '19 19:08 jkjunior