ICode9

精准搜索请尝试: 精确搜索
首页 > 其他分享> 文章详细

android – Native App比HTML5更快

2019-07-15 16:25:52  阅读:120  来源: 互联网

标签:android html5 ios native


我一直认为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,html5,ios,native
来源: https://codeday.me/bug/20190715/1469422.html

本站声明: 1. iCode9 技术分享网(下文简称本站)提供的所有内容,仅供技术学习、探讨和分享;
2. 关于本站的所有留言、评论、转载及引用,纯属内容发起人的个人观点,与本站观点和立场无关;
3. 关于本站的所有言论和文字,纯属内容发起人的个人观点,与本站观点和立场无关;
4. 本站文章均是网友提供,不完全保证技术分享内容的完整性、准确性、时效性、风险性和版权归属;如您发现该文章侵犯了您的权益,可联系我们第一时间进行删除;
5. 本站为非盈利性的个人网站,所有内容不会用来进行牟利,也不会利用任何形式的广告来间接获益,纯粹是为了广大技术爱好者提供技术内容和技术思想的分享性交流网站。

专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有