网络应用的电池效果? [英] Battery effects of web apps?

查看:183
本文介绍了网络应用的电池效果?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在学习移动网络应用,他们看起来很有趣。除此之外,我想知道本地应用和网络应用之间的电池消耗是否有显着差异? (Phonegap,intel xdk等)?

I am learning about mobile web apps, and they look interesting. Among other things, I am wondering whether there is a significant difference in battery consumption between the native apps and web apps? (Phonegap, intel xdk, etc)?

推荐答案

由于使用收发器您的手机/平板电脑上的发射器)。在任何移动设备(无论是笔记本电脑,平板电脑还是手机)上,处理器和外围设备都会进入省电睡眠状态。处理器休眠状态称为C状态。外设睡眠状态称为D状态。因此,当您的手机空闲时,更长的电池寿命。闲置时间(无论是处理器还是外围设备)越长,电池寿命越长。

There can be a significant difference due to use of transceivers (i.e. the receiver and transmitter on your phone/tablet). On any mobile device, whether notebook, tablet or phone, the processor and peripherals drop into power conserving sleep states. Processor sleep states are called C-states. Peripheral sleep states are called D-states. Thus the greater battery life when your phone is idle. The longer the period of idle, whether processor or peripheral, the better the battery life.

这对网络应用程序和本机应用程序意味着什么?本机应用程序将使用更多的处理器,但较少昂贵的外设(读取作为收发器包括GPS)。处理器和收发器都是电源。所以这里是底线:

What does this mean for web apps versus native apps? Native apps will use more of the processor but less of expensive peripherals (read that as transceiver include GPS). Both the processor and transceiver are power hogs. So here's the bottom line:


  • 如果你的网络应用程序做了很多云访问,它会下拉电池。这是为什么使用GPS给你轮到指示将杀死你的电池寿命(和使你的手机有点加热器)。

  • 如果你的本机应用程序从来没有睡觉或休息(例如,它执行轮询而不是使用中断,或者如果中断时间太小),您将拉下电池。

因此,理想的应用程序将本机和Web计算平衡到

So the ideal app balances native and web computation to


  • 最小化处理器使用(更具体地说, li>
  • 最小化外围设备使用量(尽量减少网络访问次数)

,这些目标有点矛盾。从设计师的角度来看,您希望将尽可能多的计算移动到云上,同时尽可能保持数据本地化。

As you can see, these goals are a little contradictory. From a designer perspective, you want to move as much computation onto the cloud while keeping data as local as possible.

这篇关于网络应用的电池效果?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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