A platform for the optimization of a computer program, comprising:
- a computer, wherein the computer is configured to execute one or more programs comprising:
- a second computer program configured to determine within said computer program of a call of a function in runtime having at least one input parameter, said call corresponding to a first criterion according to which said at least one input parameter is inside an interval smaller than the range of possible values for said input parameter, said interval being formed by sample values stored for several executions of said program, and to a second criterion corresponding to a desired accuracy for said call;
- a computer program configured to automatically generate an executable code for implementing said function, minimizing execution time for said at least one input parameter being within said interval and compliant with said desired accuracy, by choosing an implementation according to said interval and said desired accuracy and by determining parameters of said implementation according to said desired accuracy, and the replacement of an existing execution code implementing said function by the executable code generated at said second step.