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

也许可以这么考虑 #1

Open
clh021 opened this issue Nov 4, 2016 · 4 comments
Open

也许可以这么考虑 #1

clh021 opened this issue Nov 4, 2016 · 4 comments

Comments

@clh021
Copy link

clh021 commented Nov 4, 2016

yii2 框架中 大部分组件初始化时 有没可能被驻留到内存,正如你提到的application一样,然后,每次新的请求都被clone。对了,也许yii2的容器功能会对你有帮助。
当然,我深刻了解,事情都是想想简单,实现就不是那么回事了,有大量的细节要考虑。
最后敬佩你在这里的无私奉献,也谢谢你为解放大众劳苦码农而辛勤挖掘!谢谢!

@clh021
Copy link
Author

clh021 commented Nov 4, 2016

如果可以,很乐意和你一同出一份力,奉献一点代码。大家一起探讨,让最好的框架和最好的效率结合起来

@tourze
Copy link
Owner

tourze commented Nov 4, 2016

master分支的 src/Container.php 的 $persistClasses 就是为解决你说的问题而加入的。
我直接将大部分component和widget都列进去了。

🌹欢迎一起探讨

@clh021
Copy link
Author

clh021 commented Nov 4, 2016

😄👍👍👍加油!有时间我会clone代码一起来测试和pull代码到这里,争取早日完善这个项目的。一起加油吧!👍

@clh021
Copy link
Author

clh021 commented Nov 4, 2016

想必你应该在东八区,注意休息,身体是革命的本钱。💤

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

2 participants