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

减少_.extend的使用 #126

Closed
leeluolee opened this issue Sep 26, 2016 · 0 comments
Closed

减少_.extend的使用 #126

leeluolee opened this issue Sep 26, 2016 · 0 comments

Comments

@leeluolee
Copy link
Member

众所周知,在部分浏览器会对一些对象做Hash化"hash table mode" 优化(比如动态增加太多字段),如果在这些对象进行for in 操作并不是明智的, 而在Regularjs中大量应用了_.extend(它之中应用了for .. in ), 由于有些对象是开发者在使用中传入的,并且是用来承载数据的(比如data), 所以带来了客观的性能损耗

@leeluolee leeluolee modified the milestone: v0.5.2 Sep 26, 2016
@z-ZYS-s z-ZYS-s changed the title 减少_.exend的使用 减少_.extend的使用 Dec 6, 2016
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