1. A computer-implemented method for reducing power usage of a device, comprising: inputting, by computing hardware, original source code for an application; analyzing a situation where batching is possible by identifying, from one or more instruction sequences of the original source code, library function calls that corresponds to radio requests; estimating a power gain from batching together two or more portions of the original source code library function calls that request operation of one or more power-consuming hardware components, wherein the estimating comprises computing a minimum or average time period between execution of the two or more of the portions of the original source code library function calls, analyzing power state transitions of the radio request, and comparing the cost of the power state transitions with savings due to idle inactivity time of the power-consuming hardware components; and modifying, by the computing hardware, the original source code so that the two or more portions of the original source code are batched together removing instances of redundant power cycling, thereby creating modified source code from which the one or more power-consuming hardware components are operated in a more power efficient manner.