Suppose I create a file called properties.lua with the following content:
local M = {} M.myVariable = 10 M.floor = math.floor return M
and then access the variables from module X by requiring the properties module:
local properties = require( "properties" )
Will it make any difference from a performance perspective if I do the above or declare the two variables in module X instead? In other words: will “cross module calls” affect performance negatively compared to calls within the same module?