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

尾调用优化:尾递归优化 #22

Open
buddywang opened this issue Oct 28, 2020 · 0 comments
Open

尾调用优化:尾递归优化 #22

buddywang opened this issue Oct 28, 2020 · 0 comments

Comments

@buddywang
Copy link
Owner

作用

  • 通过减少调用栈达到减少内存使用

注意

  • 原生 JS 不支持尾调用优化,ES6 开始支持,但限定了尾位置不含闭包的尾调用才能进行优化

参考

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

No branches or pull requests

1 participant