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

几个小建议 #2

Open
championfu opened this issue May 22, 2019 · 1 comment
Open

几个小建议 #2

championfu opened this issue May 22, 2019 · 1 comment

Comments

@championfu
Copy link

提一下如下几个小建议:

  1. TVAnimation方法遍历查找ThinkVerbTransform3DType的实现类,次数有点多,我这边是个小项目有20000多次,大约0.15s的延迟,虽然只是一次性加载,可以放在load中,或者有其他的解决方案吗。
  2. 为CALayer对象添加类别,因为calayer更轻量,有很多动画场景是直接用CALayer对象

另外作者是链式编程死忠粉吗😂

@hon-key
Copy link
Owner

hon-key commented May 22, 2019

谢谢提醒哈,

  1. 确实是一个比较大的问题,当初设计的时候没怎么考虑这个问题,关键在于,APP 启动大体有两个和我们 APP 有关的步骤,+load 方法包含在第一个步骤里,也就是在 APP 链接动态库之后进行,即使放入 +load 里执行,对于大规模的应用来说,启动速度的影响还是蛮大的。不过这个问题应该已经解决了,稍后会更新一下版本
  2. 这个 ok,稍后会更新
    哈哈,算不算死忠,只是用着比较爽而已

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