×

Method for zero overhead switching of alternate algorithms in a computer program

  • US 7,415,702 B1
  • Filed: 01/20/2005
  • Issued: 08/19/2008
  • Est. Priority Date: 01/20/2005
  • Status: Active Grant
First Claim
Patent Images

1. In a computer system having a Windows operating system which provides a Dynamic Link Library that is called by a Windows application for performing a selected worker function, wherein the selected worker function is selected by first accessing an import table provided for use by said application, a method for reducing latency in the calling of said worker function by said application when said selected worker function is a time-critical worker function and said application is a multiple-iteration application which requires multiple iterations of said time-critical worker function, said method comprising:

  • accessing by said multiple-iteration application of said import table to locate an address of said time-critical worker function;

    calling by said multiple-iteration application of said time-critical worker function in response to the address located by said accessing;

    executing the called time-critical worker function and also, on the first call of said time-critical worker function by said multiple-iteration application, utilizing a stub of code provided at the entry point of said time-critical worker function for patching the multiple-iteration application to said time-critical worker function by modifying said multiple-iteration application so that the multiple-iteration application will bypass said import table and directly call said time-critical worker function on subsequent iterations without having to access said import table; and

    returning operation to said multiple-iteration application after completion of said time-critical worker function.

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