摘要 |
The present invention relates to an optimization method (MTH) for optimizing the execution of a first platform-independent method (F0) by a virtual machine (VM) of an integrated circuit card, wherein said integrated circuit card comprising a first non-volatile memory (MEM1), a second rewritable non-volatile memory (MEM2) and a unit processor (PR), said first platform-independent method (F0) being stored in said second rewritable non-volatile memory (MEM2), and wherein said optimization method (MTH) comprising:
- if there is a call to a specific second platform-independent method (F1) within said first platform-independent method (F0), said specific second platform-independent method (F1) comprising one specific parameter (P1) and being stored in the first non-volatile memory (MEM1), checking by means of said virtual machine (VM) according to said specific parameter P1 if there is a native function (F2) associated to said first platform-independent method (F0) stored in said second rewritable nonvolatile memory (MEM2);
- if there is a corresponding native function (F2):
- executing by means of said unit processor (PR) said native function (F2);
- exiting by means of said virtual machine (VM) directly from said first platform-independent method (F0) upon completion of said native function (F2). |