Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deep stack will Cost more CPU #316

Open
yiYangGit opened this issue Oct 27, 2018 · 2 comments
Open

Deep stack will Cost more CPU #316

yiYangGit opened this issue Oct 27, 2018 · 2 comments

Comments

@yiYangGit
Copy link

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
Copy link

linkerlin commented Nov 24, 2018

Building a Fiber-Pool will help.

@jkjunior
Copy link

jkjunior commented Aug 7, 2019

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants