我一直认为HTML5应用程序与本机应用程序相比应该没有任何弱点,但根据今天发布的新Facebook应用程序,当他们切换到本机iOS代码而不是Web应用程序时,速度提升了.
That includes a faster opening of the app itself, smoother and faster
scrolling, and photos that are said to load “instantly” — changes
that are largely due to a switch from the old HTML5 code to iOS’
native programming language.
谁能保证这些速度提升?原生发展更快吗?
Facebook for iOS本土化,再见HTML 5
http://www.theverge.com/2012/8/23/3262782/facebook-for-ios-native-app
解决方法:
我在您发布的链接中找到了一个链接,该链接在页面上有一个部分,为什么它更快
Under the hood: Rebuilding facebook for IOS
该部分被命名为(Re-)建筑物以提高速度
. One way we have achieved this is by re-balancing where we perform
certain tasks. For example, in iOS, the main thread drives the UI and
handles touch events, so the more work we do on the main thread, the
slower the app feels. Instead, we take care to perform computationally
expensive tasks in the background. This means all our networking
activity, JSON parsing, NSManagedObject creation, and saving to disk
never touches the main thread
原文地址:https://codeday.me/bug/20190715/1469422.html
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。