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

启动时间 #4

Open
Rannie opened this issue Sep 6, 2017 · 1 comment
Open

启动时间 #4

Rannie opened this issue Sep 6, 2017 · 1 comment
Assignees

Comments

@Rannie
Copy link

Rannie commented Sep 6, 2017

启动时间这个由于 Load 顺序不确定,而且 dyld 在 load class 之后还有 initializers 之前也要 load dylib 所以这个冷启动的时间应该是不准确的 ...

@aozhimin
Copy link
Owner

aozhimin commented Sep 6, 2017

@Rannie 是的,文章中冷启动时间的这种方案确实会因为 +load 方法的顺序不确定,而且 +load 方法记录开始时间肯定是会晚于实际启动时间,不是太完美,但是确实有 SDK 是采取这种方案的,比如 Firebase Performance Monitoring,详细可以参考我的另外一篇文章,目前我还没投入更多的精力去研究这块,等之后发现更好的方案,再来更新文章,另外还有热启动时间已经实现,但是文章还没来得及更新。

@aozhimin aozhimin self-assigned this Sep 6, 2017
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

2 participants