-
-
Notifications
You must be signed in to change notification settings - Fork 83
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
Do not use Recursion for Expression compilation #132
Comments
Net Frameworks ExpressionCompile fails with about 4000 loops |
Yep, I think at some point of time we need to replace recursion with loop and hold our own stack. |
I think Microsoft also uses, because it crashes also with a stack overflow. But later, so we have more methods in the Stack. Maybe we can reduce this |
Or disallow more than 256 items of something #89 |
…that some nodes container single sub-node, and the order of collecting cann be done on any order
After inlining a lot of intermediate calls in |
To be clear it is not a recursion trampolining, we are just replacing recursion calls with loop until possible, then it still would go deeper for remaining nodes. |
I don't think to spend more than already done on this. |
Maybe it's faster (or maybe not), to not Traverse the Expression Tree via recursive calls? I know, this would be a big rewrite.
Also a StackOverflow Exception could occur during expression Parsing.
see this, a StackOverflow happens with FastExpressionCompiler, with Net Framework it works
The text was updated successfully, but these errors were encountered: