Memoization configuration file consumed at runtime
First Claim
1. A method performed by a computer processor, said method comprising:
- receiving executable code;
executing said executable code;
during said executing, identifying a first function prior to executing said first function;
determining a first state for said first function, said first state for said first function comprising input parameters for said first function;
looking up said first function and said first state for said first function in a configuration database;
when said first function and said first state for said first function are present in said configuration database and a stored memoized value is present in said configuration database corresponding to said first function and said first state for said first function, retrieving said stored memoized value from said configuration database and returning said stored memoized value for said first function; and
when said first function is present in said configuration database and said stored memoized value is not present in said configuration database, executing said first function to generate said stored memoized value and storing said stored memoized value and said first state for said first function in said configuration database.
2 Assignments
0 Petitions
Accused Products
Abstract
Memoization may be deployed using a configuration file or database that identifies functions to memorize, and in some cases, includes input and result values for those functions. As an application is executed, functions defined in the configuration file may be captured and memoized. During the first execution of the function, the return value may be captured and stored in the configuration file. For subsequent executions of the function, the return value may be stored in the configuration file. In some cases, the configuration file may be distributed with the return values to client computers. The configuration file may be created by one device and deployed to other devices in some deployments.
106 Citations
20 Claims
-
1. A method performed by a computer processor, said method comprising:
-
receiving executable code; executing said executable code; during said executing, identifying a first function prior to executing said first function; determining a first state for said first function, said first state for said first function comprising input parameters for said first function; looking up said first function and said first state for said first function in a configuration database; when said first function and said first state for said first function are present in said configuration database and a stored memoized value is present in said configuration database corresponding to said first function and said first state for said first function, retrieving said stored memoized value from said configuration database and returning said stored memoized value for said first function; and when said first function is present in said configuration database and said stored memoized value is not present in said configuration database, executing said first function to generate said stored memoized value and storing said stored memoized value and said first state for said first function in said configuration database. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13)
-
-
14. A system comprising:
-
a processor; and an execution environment executing on said processor, said execution environment that; receives executable code; executes said executable code; during said execution, identifies a first function prior to executing said first function; determines a first state for said first function, said first state for said first function comprising input parameters for said first function; looks up said first function and said first state for said first function in a configuration database; when said first function and said first state for said first function are present in said configuration database and a stored memoized value is present in said configuration database corresponding to said first function and said first state for said first function, retrieves said stored memoized value from said configuration database and returning said stored memoized value for said first function boundary; and when said first function is present in said configuration database and said stored memoized value is not present in said configuration database, executes said first function to generate said stored memoized value and stores said stored memoized value and said first state for said first function in said configuration database. - View Dependent Claims (15, 16, 17, 18, 19, 20)
-
Specification