On 06/30/2015 02:50 PM, Jonas Sicking wrote: > Definitely use RequestSync rather than alarm API! There are battery > saving advantages already, and these advantages will just get better > in the future as we improve the implementation of the API.
Are you sure about the battery savings? Last I look requestSync was using gecko timers while the alarm api is doing a blocking read from a kernel managed file descriptor on its own thread. I would be surprised if there was any significant difference. Fabrice -- Fabrice Desré b2g team Mozilla Corporation _______________________________________________ dev-b2g mailing list dev-b2g@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-b2g