Patent ID: 8112765

Claim:
A program product for optimizing a computer program in a virtual machine environment, comprising: a non-transitory computer-readable medium tangibly embodying a plurality of instructions executable by a machine to perform the method comprising: receiving a first version of said computer program embodied as programming code in said virtual machine environment, said first version of said computer program including a plurality of sub-programs and an event structure containing a plurality of event notification objects, each event notification object identifying a respective event and a respective sub-program of said plurality of sub-programs which has been registered to be notified upon the occurrence of the respective event; accessing said event structure to identify a plurality of said events and corresponding sub-programs to be notified upon the occurrence of the corresponding event; with respect to each of a plurality of said events identified by said step of accessing said event structure to identify a plurality of said events, generating respective event response programming code in said virtual machine environment, each respective event response programming code making a respective direct call within said computer program to each sub-program which has been registered to be notified upon the occurrence of the respective event; and incorporating each respective event response programming code generated by said step of generating respective event response programming code in said computer program to create a second version of said computer program.