×

Purity analysis using white list/black list analysis

  • US 9,594,754 B2
  • Filed: 01/25/2016
  • Issued: 03/14/2017
  • Est. Priority Date: 11/08/2012
  • Status: Active Grant
First Claim
Patent Images

1. A computer-implemented method of determining whether an impure function of a program is memoizable, the computer-implemented method comprising:

  • performing a static code analysis of the program which identifies for one or more functions of the program whether a function has a side effect, and if the function has a side effect, classifying the function as impure;

    for each function classified as impure;

    analyzing different sets of input parameters treated as input vectors,clustering the input vectors to create areas of known input vectors for which memoization may be performed and areas of known input vectors for which memoization may not be performed, andfor a given input vector, classifying at least one or more of the impure functions as memoizable or not based at least in part on whether the given input vector is within one of said areas of known input vectors for which memoization may be performed; and

    storing the one or more impure functions classified as memoizable in a memoization list to facilitate return of cached results for those functions stored on the memoization list so that the cached results are provided without having to re-execute the one or more functions.

View all claims
  • 2 Assignments
Timeline View
Assignment View
    ×
    ×