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
solopiggy opened this issue Sep 3, 2019 · 10 comments
Open

重排后貌似没什么效果 #4

solopiggy opened this issue Sep 3, 2019 · 10 comments

Comments

@solopiggy
Copy link

测试数据(重排)

  1. EnterMain()—>1623.5341796875 coldLanuchFinished-->3591.0869140625
  2. EnterMain()—>1671.537841796875 coldLanuchFinished-->4203.284912109375
  3. EnterMain()—>1463.7109375 coldLanuchFinished-->3916.2109375
  4. EnterMain()—>1535.093994140625 coldLanuchFinished-->4235.630126953125
  5. EnterMain()—>1654.43505859375 coldLanuchFinished-->4197.576904296875
  6. EnterMain()—>1413.18115234375 coldLanuchFinished-->4113.499267578125

测试数据(非重排)

  1. EnterMain()—>1381.821044921875 coldLanuchFinished-->4133.60986328125
  2. EnterMain()—>1563.06591796875 coldLanuchFinished-->4042.641845703125
  3. EnterMain()—>1490.971923828125 coldLanuchFinished-->4021.407958984375
  4. EnterMain()—>1689.35498046875 coldLanuchFinished-->3937.9599609375
  5. EnterMain()—>1594.353271484375 coldLanuchFinished-->3975.540283203125

用模拟器跑了几次数据,发现差距并不明显

@yulingtianxia
Copy link
Owner

对的!

@wangzhizhou
Copy link

怎么测试对比重排前后的效果?

@wangzhizhou
Copy link

我这边也是重排后反而File Backed Page In次数变多了

@wangzhizhou
Copy link

这个貌似只有对全源码项目有作用,对于.a无效

@wangzhizhou
Copy link

看看这个,我现在正在试验把你的这个和另一个结合起来使用:
https://github.com/rhythmkay/PGOAnalyzer

@wangzhizhou
Copy link

PGOAnalyzer是针对OC的二进制依赖做的,不过还得试过之后才能判断效果

@Matthew1874
Copy link

Matthew1874 commented Aug 23, 2020

@wangzhizhou 有符号表才有作用,而且本来启动耗时偏差就很大,这种二进制重排本来就收效甚微,被某条等厂大肆鼓吹罢了,我只是实在是不好意思揭下去了,毕竟那阵子是晋升季,不能再多说了,要得罪人了

你好, 有符号表才有作用---> 能不能详细说一下呢? 是指 dsym那种符号表吗? 谢谢

@yulingtianxia
Copy link
Owner

@Matthew1874 嗯可以这样理解

@ianisme
Copy link

ianisme commented Aug 26, 2021

@wangzhizhou 有符号表才有作用,而且本来启动耗时偏差就很大,这种二进制重排本来就收效甚微,被某条等厂大肆鼓吹罢了,我只是实在是不好意思揭下去了,毕竟那阵子是晋升季,不能再多说了,要得罪人了

mark一下,敢于说真话的人不多了,哈哈哈

@yulingtianxia
Copy link
Owner

@wangzhizhou 有符号表才有作用,而且本来启动耗时偏差就很大,这种二进制重排本来就收效甚微,被某条等厂大肆鼓吹罢了,我只是实在是不好意思揭下去了,毕竟那阵子是晋升季,不能再多说了,要得罪人了

mark一下,敢于说真话的人不多了,哈哈哈

然而我还是怂了,删了原评论哈哈

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

5 participants