PhoneGap iOS应用程序明显缓慢? [英] PhoneGap iOS app noticeably slow?

查看:135
本文介绍了PhoneGap iOS应用程序明显缓慢?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我最近用PhoneGap开发了一个非常简单的iOS应用程序。它真的是要求用户输入一些坐标,然后在google地图上的坐标位置放置一个标记。该应用程序将做更多的事情,包括比较这些坐标与矿物样本发现的数据库,但即使现在它加载比我想要更慢。

I have lately been developing a very simple app for iOS with PhoneGap. All it does really is ask the user to input some coordinates and then drops a marker on a google map at the location of the coordinates. The app will do more later involving comparing those coordinates against a database of mineral sample findings, but even now it loads rather slower than I'd like.

这不是不可用 - - 它在大约2-2.5秒内加载每一页。但是这是在wifi上,它只是准备HTML与非常微量的JavaScript,最低需要打开谷歌地图。我担心,一旦数据库涉及,它会变得更糟,我担心这是不好的质量开始。

It's not unusable-- it loads every page in about 2-2.5 seconds. But that's on wifi and it's just barebones HTML with a very minute amount of JavaScript, the minimum necessary to open a google map. I'm concerned it'll get worse once the database gets involved, and I'm concerned that this isn't good quality to begin with.

这是一个固有的问题与phonegap框架,或有办法加速?我从2010年开始在iPod touch上进行测试,所以该设备不是全新的,但它不应限制我们的处理能力。

Is this an inherent issue with the phonegap framework, or are there ways to speed it up? I've been testing on an iPod touch from 2010, so the device isn't brand new but it certainly shouldn't be limiting us in terms of processing power.

推荐答案

在我的经验这不是常见的性能为Phonegap应用程序。没有看到代码我的猜测将是一个旧设备的组合(可悲的是JavaScript性能不是伟大的在2011年前的设备)和过时的版本,如果iOS。我最近测试了一个应用程序在运行4.2的iPhone 3G,它是不可用的。

in my experience this is not common performance for a Phonegap app. Without seeing the code my guess would be that it's a combination of an older device (sadly JavaScript performance is not great on pre-2011 devices) and an outdated version if iOS. I recently tested an app on an iPhone 3G running 4.2 and it was unusable. JavaScript performance makes or breaks a Phonegap app and it's just not up to par on some devices.

查看此页面,您可以确定您的设备位于何处JavaScript量表...
http://www.bestsmartphone.com/2011/09 / 26 / javascript-benchmarks /

Take a look at this page and you can figure out where your device sits on the JavaScript scale... http://www.bestsmartphone.com/2011/09/26/javascript-benchmarks/

祝你好运!

这篇关于PhoneGap iOS应用程序明显缓慢?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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