Is lua called from redis interpreted or compiled?

Redis supports lua scripting. Using the eval command, we can execute the lua script in redis. Is lua script compiled or interpreted when redis calls lua script?

+5
source share
1 answer

Lua scripts sent to the Lua library for execution are always compiled according to the Lua VM instructions before execution. These instructions are then interpreted by the Lua virtual machine.

+2
source

Source: https://habr.com/ru/post/1216606/


All Articles