1. A computer-implemented method for dynamically compiling methods during an idle period in the processing of a computer program, the computer-implemented method comprising: identifying the idle period; identifying a first method selected from a plurality of methods during the idle period, the plurality of methods being included in the computer program, wherein the computer program is arranged to execute both interpreted program code and compiled program code; and initializing a compilation of the first method, wherein the initialization of the compilation of the first method occurs during the idle period.