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

为什么普通 for 循环的性能远远高于 forEach 的性能,请解释其中的原因 #27

Open
hanyueqiang opened this issue Dec 10, 2020 · 0 comments

Comments

@hanyueqiang
Copy link
Owner

在100万这个量级下, forEach 的性能是和for的一致
在1000万量级for循环性能远高于forEach

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

1 participant