Patent ID: 8327386

Claim:
A method of optimizing a computer program, comprising the computer-executed steps of: receiving registration of a plurality of sub-programs to be called upon the occurrence of corresponding events in a computer system, said plurality of sub-programs being registered in an event structure which records, for each said event, a respective set of sub-programs to be called upon the occurrence of the corresponding event, each set comprising at least one sub-program; receiving a first version of said computer program, said computer program being capable of handling one or more said events by causing, for each said event, the respective set of sub-programs to be called; with respect to each of at least one event registered in said event structure, generating respective event response programming code, 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.