android – Native App比HTML5更快

android – Native App比HTML5更快,第1张

概述我一直认为 HTML5应用程序与本机应用程序相比应该没有任何弱点,但根据今天发布的新Facebook应用程序,当他们切换到本机iOS代码而不是Web应用程序时,速度提升了. That includes a faster opening of the app itself, smoother and faster scrolling, and photos that are said to load 我一直认为 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

总结

以上是内存溢出为你收集整理的android – Native App比HTML5更快全部内容,希望文章能够帮你解决android – Native App比HTML5更快所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址:https://54852.com/web/1122914.html

(0)
打赏 微信扫一扫微信扫一扫 支付宝扫一扫支付宝扫一扫
上一篇 2022-05-29
下一篇2022-05-29

发表评论

登录后才能评论

评论列表(0条)

    保存