PhoneGap的速度VS原生的iOS 4/5和Android的GPS /位置服务/地图 [英] PhoneGap speed vs native iOS 4/5 and Android for GPS / Location Services / Maps

查看:116
本文介绍了PhoneGap的速度VS原生的iOS 4/5和Android的GPS /位置服务/地图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是什么性能折衷使用的PhoneGap用于开发,它使用用户的地图和全球定位系统在几乎整个应用的应用的?该应用程序需要弄清楚什么是附近的,拿起上岗的地点,并嵌入映射到屏幕上。

What is the performance trade off of using PhoneGap for developing an application that uses the users maps and gps throughout almost the entire application? The app needs to figure out what is nearby, pick up locations for posts, and embed maps into screens.

也许无关,但应用程序还需要使用手机的摄像头的一个重要特征。

Probably unrelated, but the app will also need to use the phone's camera as a key feature.

思考?

推荐答案

的PhoneGap 使用相同的本机API ,它只是抽象它们,这样你可以写在你的应用程序 HTML 的JavaScript

Phonegap uses the same native APIs, it just abstracts them so that you can write your application in html and javascript.

的PhoneGap的插件文件规定,所有的繁重,因为 Javascript的应在本机端做的还是相当慢一点,同时运行在本地浏览器。

PhoneGap’s plugins documentation states that all "heavy lifting" should be done on the native side since Javascript is still quite a bit slower while running in the native browser.

这是安全的假设PhoneGap的解决方案将需要更长的时间鉴于 Javascript的必须触发本机的功能,等待回调,然后生成列表 HTML

It’s safe to assume that the PhoneGap solution is going to take longer given that the Javascript must trigger the native function, wait for the callback, and then build the list in html.

我对你一些有用的链接。

I have some useful links for you..

<一个href="https://s$p$padsheets.google.com/pub?key=0AsTInFQpmXDNdEdJU0ZNNGx3dDA3aXAxV3lXYWhXVHc">mobile-framework-comparision

的PhoneGap VS原生的Andr​​oid和iPhone应用程序的性能和功能

<一个href="http://www.techrepublic.com/blog/app-builder/phonegap-plugin-vs-a-native-solution-in-android/653">PhoneGap插件与Android中原生解决方案

<一个href="http://stackoverflow.com/questions/7521963/phonegap-app-performance-vs-native-app-performance">Phonegap应用程序的性能VS本机应用程序的性能

<一个href="http://stackoverflow.com/questions/5161004/using-phonegap-for-native-application-development">Using PhoneGap的对本地应用开发

这篇关于PhoneGap的速度VS原生的iOS 4/5和Android的GPS /位置服务/地图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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