Skip to content

Compiled VS Uncompiled#


In Miva Merchant, compiled code and uncompiled code refer to different methods of processing MivaScript.

Compiled Code:#

Compiled code refers to MivaScript that has been processed and compiled into bytecode by the Miva Engine before execution. This compilation process typically occurs when changes are made to scripts or templates within the Miva Merchant administration interface. Compiled code is optimized for performance and efficiency since it has already been processed into a form that the Miva Engine can execute directly. When a storefront loads, the Miva Engine executes the compiled bytecode, resulting in faster page rendering and improved overall performance.

Uncompiled Code:#

Uncompiled code, on the other hand, refers to MivaScript that has not undergone the compilation process and remains in its original text format. Uncompiled code is typically used during the development and testing phase, allowing developers to make changes to scripts and templates more quickly without the need for recompilation. While uncompiled code offers flexibility during development, it may result in slower performance in a production environment since the Miva Engine must parse and interpret the code each time it is executed.

Summary#

In summary, compiled code is optimized for performance and is used in production environments to ensure fast and efficient execution of MivaScript, while uncompiled code offers flexibility during development but may result in slower performance due to the need for parsing and interpretation.