Open tsuijunxi opened 5 years ago
http://lingyuncxb.com/2019/04/14/HumbleAssetCatalog/#more
背景QQ阅读在首次启动,进入阅读页之后,呼出上下菜单,点击设置,会出现明显的卡顿现象,而之后再次操作便不会出现相同的问题。 首次分析解决通过Instrument测量发现,大量的时间都集中在加载图片的逻辑里:[UIImage imageNamed:],此时也就可以理解为什么只有首次才会出现卡顿了。 通过hook [UIImage imageNamed:]方法,直接将设置所使用到的图片全部截获输出,发
很棒!
学习了
@hatjs880328s 很棒!
谢谢关注
@mahong125 学习了
写的好啊
http://lingyuncxb.com/2019/04/14/HumbleAssetCatalog/#more
背景QQ阅读在首次启动,进入阅读页之后,呼出上下菜单,点击设置,会出现明显的卡顿现象,而之后再次操作便不会出现相同的问题。 首次分析解决通过Instrument测量发现,大量的时间都集中在加载图片的逻辑里:[UIImage imageNamed:],此时也就可以理解为什么只有首次才会出现卡顿了。 通过hook [UIImage imageNamed:]方法,直接将设置所使用到的图片全部截获输出,发