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

精读《函数缓存》 #261

Closed
ascoders opened this issue Jul 25, 2020 · 2 comments
Closed

精读《函数缓存》 #261

ascoders opened this issue Jul 25, 2020 · 2 comments

Comments

@ascoders
Copy link
Owner

ascoders commented Jul 25, 2020

在函数调用场景下,对性能消耗较大的函数进行缓存是重要的性能优化手段。

精读文章:https://whatthefork.is/memoization


精读《函数缓存》

@0xAC7
Copy link

0xAC7 commented Aug 4, 2020

函数本身也是对象,所以也可以直接将缓存存放到自身。

@07akioni
Copy link
Contributor

07akioni commented Aug 9, 2020

函数本身也是对象,所以也可以直接将缓存存放到自身。

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Functions/arguments/callee

arguments.callee 已经被废弃了,有啥新办法能让函数自己访问到自己么

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