更多计算循环 - 移动混合应用程序或移动Web应用程序 [英] More loops of computation - Mobile Hybrid Application or Mobile web app

查看:109
本文介绍了更多计算循环 - 移动混合应用程序或移动Web应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们希望开发移动应用程序,无论是混合应用程序还是Web应用程序。由于可用性和性能是主要的架构驱动因素,因此我们认为Hybrid App是最佳方法。但它应该具有这些功能。由于每个特定平台的开发成本,开发本机应用程序是不可能的。



它将有一个离线数据库(我有点想使用localForage,包装IndexDB,Websql或者简单地使用cordova-sqlite).DB大小将在15MB左右,将来可以增长到40MB。



它应该用于计算一项重要的行动。该操作涉及从数据库读取数据并运行10,000(或更多可能是40,000)循环,每个循环进行一些计算。因为它是一个混合应用程序,我们需要用Javascript编写这个代码。



现在请你告诉我这个计算(循环)是否会影响电池的使用情况一个很大的方法(因为有cpu compuation)或者它好吗?用户反应会好吗?在桌面上,这种计算通常需要大约30-40秒,其中它可以超过1.5分钟(但我们可以限制一些功能)



我们可以决定使用移动设备与服务器进行计算的web应用程序,但响应性和性能将不会很好(可能)。已经有一个网站(不是移动网络应用程序或移动网站)可以完成所有功能

We are wanting to develop a Mobile App either a hybrid App or web app. Since Usability and performance are the main architectural drivers we are thinking Hybrid App is the best approach. But it is supposed to have these features. Because of development cost for each specific platform, Developing native app is out of question.

It will have an offline DB (i kind of wanting to go with a localForage which wraps IndexDB, Websql or will simply go with cordova-sqlite).DB Size will be around 15MB can grow upto 40MB in future.

It is supposed to do computations for an important operation. The operation involves reading data from database and running 10,000(or much more may be 40,000 ) loops with each loop doing some caluculation. As it is a hybrid App, we need to write this code in Javascript.

Now could you please tell me whether this computation (loops) will affect the battery usage in a big way (since there is cpu compuation) or is it Ok ? will the user response be good? On desktop this computation generally takes around 30-40seconds with cases where it can go beyond 1.5 minute (but we can restrict some functionalities)

we can decide to go with mobile web app with server doing compuation, but the responsiveness and performance will be not be good (may be). There is already a website (not a mobile web app or mobile website) available which does all the functionality

推荐答案

这篇关于更多计算循环 - 移动混合应用程序或移动Web应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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