Patents
US 9,195,486 B2#13984926 Most CitedActiveUnited States (USPTO)Utility

Observation and analysis based code optimization

8Forward Citations (#13984926 Global)
0.7/yrCitation Velocity (#10506102 Global)
1.38Citation PageRank (#26090672 Global)
38Prior Art Cited
1Claims (1 Indep. · 0 Dep.)
0Drawings / Sheets

Abstract

Observation and analysis based optimization of software code is disclosed. An expected value is chosen for a dynamic attribute that cannot be determined, prior to execution of the associated software code, to be guaranteed to have that expected value at runtime. An optimized version of the software code is generated, including one or more optimizations based on an assumption that the dynamic attribute will have the expected value. Non-exhaustive examples of a dynamic attribute include a variable type; a location in memory; a location in which a global object, property, or variable is stored; the contents of a global function or method; and a value of a global property or variable. A check is performed during execution of the optimized version of the software code, prior to executing the portion that has been optimized based on the assumption, to verify that the dynamic attribute has the expected value. In the event that it is determined at runtime that the dynamic attribute does not have the expected value, execution reverts to backup code that is not based on the assumption that dynamic attribute will have the expected value.

Interactive Citation Constellation Global Citation Ranking

Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 38 · Forward citations: 8.

Claims (1 — 1 Independent, 0 Dependent)

  1. Claim 1Independent Claim

    A computer-implemented method for optimizing a manner in which a software code is executed, comprising: during a compilation of the software code: determining, for a dynamic attribute associated with the software code, an expected value that the dynamic attribute will take on at a runtime of the software code, wherein the software code is dynamically typed, and determining the expected value comprises applying a static type inference analysis to the dynamically typed software code; generating an un-optimized version of the software code, wherein the un-optimized version is based on an assumpti

Technical Overview & Description

Full multi-page specification text is archived at the issuing office. Read complete official specification ↗

References Cited — Backward Prior Art (38)

PatentTitleYearCitations
US 5,857,104 ASynthetic dynamic branch prediction1999111
US 6,014,518 ATerminating polymorphic type inference program analysis200061
US 6,077,313 AType partitioned dataflow analyses200068
US 6,148,437 ASystem and method for jump-evaluated trace designation200069
US 6,195,793 B1Method and computer program product for adaptive inlining in a computer system200137
US 6,223,340 B1Method for directly inlining virtual calls without on-stack replacement200151
US 2003074602 A1Recovery guarantees for software components—21
US 6,564,162 B1Method and apparatus for improving electrical verification throughput via comparison of operating-point differentiated test results200310
US 6,658,656 B1Method and apparatus for creating alternative versions of code segments and dynamically substituting execution of the alternative code versions200342
US 6,799,236 B1Methods and apparatus for executing code while avoiding interference200466
US 2005071831 A1Method for computer program optimization in a dynamic compilation environment—25
US 2005188363 A1Cross-module in-lining—10
US 6,971,091 B1System and method for adaptively optimizing program execution by sampling at selected program points2005119
US 6,980,997 B1System and method providing inlined stub200519
US 7,080,366 B2Dynamic compiler and method of compiling code to generate dominant path and to handle exceptions200664
US 2006167950 A1Method for the management, logging or replay of the execution of an application process—29
US 2006179036 A1Methods and systems for displaying matching business objects—23
US 2006265552 A1Prefetch mechanism based on page table attributes—81
US 2007006167 A1Optimizing binary-level instrumentation via instruction scheduling—30
US 7,171,656 B2Generic embedded application technology architecture20074
US 2007074173 A1Cross-architecture optimization—8
US 2007174695 A1Log-based rollback-recovery—21

Non-Patent Literature (5)

  • Arnold et al. Adaptive optimization in the Jalapeno JVM. OOPSLA. ACM (2000).
  • Asher et al., "The effect of unrolling and inlining for Python bytecode optimizations." SYSTOR'09 (May 4-6, 2009), Haifa, Israel.
  • Chambers et al., "An efficient implementation of SELF, a dynamically-typed object-oriented language based on prototypes." LISP & Symbolic Computation, pp. 243-281 (1991).
  • Chambers et al., "Making pure object-oriented languages practical." OOPSLA Conf. Proc. (Oct. 1991).
  • Deconinick, G. et al., (1993), "Survey of Backward Error Recovery Techniques for Multicomputers Based on Checkpointing and Rollback", Proc. of IASTED Int. Conf. on Modelling and Simulation, Pittsburgh, PA, May 10-12, 1993, pp. 262-265.