Optimizing Redis Lua script calls to redis.call
According to this Lua optimization doc: https://www.lua.org/gems/sample.pdf Access to external locals (that is, variables that are local to an enclosing function) is not as fast as access to local variables, but it is still faster than access to globals. Consider…