Execution optimization of mobile applications
First Claim
1. A method for changing a program code to decrease execution time, comprising:
- receiving a program code, wherein said program code comprises a plurality of function calls, wherein one of said plurality of function calls is an entry function, wherein one of said plurality of function calls is a target function, and wherein an execution time between said entry function and said target function is to be decreased;
analyzing said plurality of function calls between said entry function and said target function;
generating a first program code comprising some of said plurality of function calls executed before said target function;
generating a second program code comprising some of said plurality of function calls executed after said target function;
replacing said plurality of function calls executed before said target function with said first program code;
removing said plurality of function calls executed after said target function; and
adding said second program code to said program code at a location within said program code configured to execute said second program code after said target function as a background process.
1 Assignment
0 Petitions
Accused Products
Abstract
According to an aspect of some embodiments of the present invention there is provided a method for changing a program code to decrease execution time. The method comprises an action of receiving a program code, comprising function calls, with an entry and a target function. The method comprises analyzing the function calls between the entry function and the target function. A first program code is generated, comprising some of the function calls executed before the target function. A second program code is generated, comprising some of the function calls executed after the target function. The function calls executed before the target function are replaced with the first program code. The function calls executed after the target function are removed. The second program code is added to the program code to execute after the target function as a background process.
13 Citations
20 Claims
-
1. A method for changing a program code to decrease execution time, comprising:
-
receiving a program code, wherein said program code comprises a plurality of function calls, wherein one of said plurality of function calls is an entry function, wherein one of said plurality of function calls is a target function, and wherein an execution time between said entry function and said target function is to be decreased; analyzing said plurality of function calls between said entry function and said target function; generating a first program code comprising some of said plurality of function calls executed before said target function; generating a second program code comprising some of said plurality of function calls executed after said target function; replacing said plurality of function calls executed before said target function with said first program code; removing said plurality of function calls executed after said target function; and adding said second program code to said program code at a location within said program code configured to execute said second program code after said target function as a background process. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17)
-
-
18. A computer program product for changing a program code to decrease execution time, said computer program product comprising:
-
a computer readable storage medium having stored thereon; first program instructions executable by a computerized system to cause said computerized system to receive a program code, wherein said program code comprises a plurality of function calls, wherein one of said plurality of function calls is an entry function, wherein one of said plurality of function calls is a target function, and wherein an execution time between said entry function and said target function is to be decreased; second program instructions executable by said computerized system to cause said computerized system to analyze said plurality of function calls between said entry function and said target function; third program instructions executable by said computerized system to cause said computerized system to generate a program code comprising some of said plurality of function calls executed before said target function; fourth program instructions executable by said computerized system to cause said computerized system to generate a second program code comprising some of said plurality of function calls executed after said target function; fifth program instructions executable by said computerized system to cause said computerized system to replace said plurality of function calls executed before said target function with said first program code; sixth program instructions executable by said computerized system to cause said computerized system to remove said plurality of function calls executed after said target function; and seventh program instructions executable by said computerized system to cause said computerized system to add said second program code to said program code at a location within said program code configured to execute said second program code after said target function as a background process.
-
-
19. A system for changing a program code to improve execution time, comprising:
-
at least one processing unit; a user interface to control the operation of at least one computerized device of said system; a program code interface to transfer a program code to said at least one processing unit; a non-transitory computer readable medium comprising computer executable instructions executable by said at least one processing unit, comprising; instructions to receive, by a code analysis module, said program code via said program code interface, wherein said program code comprises a plurality of function calls, wherein said plurality of function calls comprise an entry function and a target function, and wherein said plurality of function calls are analyzed between said entry function and said target function; instructions to generate, by a code generation module, a first program code comprising some of said plurality of function calls executed before said target function and configured to generate a second program code comprising some of said plurality of function calls executed after said target function; instructions to modify, by a code modification module, said plurality of function calls with said first and second program code, wherein said modification is adapted to execute said second program code in a background process after said target function. - View Dependent Claims (20)
-
Specification