对于Android 4.4和Android,使用人行横道是否有任何实际好处?以上? [英] Is there any real benefit using crosswalk for Android 4.4 & above?

查看:165
本文介绍了对于Android 4.4和Android,使用人行横道是否有任何实际好处?以上?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Crosswalk插件对于为混合应用程序带来巨大的性能提升非常重要。但问题是,一旦添加,APK就会变得巨大,为安装程序增加大约15-18MB的大小。

Crosswalk plugin is very important in bringing huge performance improvement for hybrid app. But the problem is, once it is added, the APK is becoming HUGE, adding about 15-18MB of size to the installer.

那么,是否有任何实际的好处(特别是在性能方面)将人行横道添加到Android 4.4& ;;的安装程序中以上?

So, is there any real benefit (especially in performance) for adding the crosswalk into the installer for Android 4.4 & above?

推荐答案

我最近在android 4.4+设备上完成了angularJS cordova app的一些性能测试。我使用browser-perf实用程序( https:// github)对短篇小说进行了测试并测试了cordova app vs cordova + crosswalk应用程序。 COM / axemclion /浏览器PERF )。我看到的唯一性能提升是绘画(aprox。与'clean'cordova相比)快了4倍。所有其他指标都更糟糕,有些甚至更糟(渲染:aprox慢1.5倍)。总结一下,我的cordova + crosswalk应用程序比cordova慢9%。在安装后,crosswalk还为我的apk大小增加了21MB,为应用程序大小添加了60MB(!)。在我的项目中,由于重量和速度,使用人行横道是没有意义的。用于测试的应用程序是非常丰富的角度SPA项目,也许简单的应用程序可以从人行横道获得一些提升。

I recently done some performance tests of angularJS cordova app on android 4.4+ devices. I prepered short stories and tested cordova app vs cordova + crosswalk app using browser-perf utility (https://github.com/axemclion/browser-perf). The only performance boost I saw was painting (aprox. 4 times faster in comparison with 'clean' cordova). All other metrics were worse, some even much worse (rendering: aprox 1.5 times slower). Summarizing times, my cordova+crosswalk app was 9% slower than cordova. Also crosswalk added 21MB to my apk size and 60MB(!) to app size after installation. In case of my project, using crosswalk was pointless because of weight and speed. App used to tests was really rich angular SPA project, maybe simple apps can achieve some boost from crosswalk.

这篇关于对于Android 4.4和Android,使用人行横道是否有任何实际好处?以上?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆