sol2
sol2 copied to clipboard
Performance of lua calling C + + sol function

Type checking is not enabled, but why does the number of parameters increase and the running time double
If "lua_tointeger" is used to increase parameters, the runtime will not be increased, and it is fixed at 0.2S
I found that after changing int to float, it was normal. Maybe I used luajit, and sol would have more float2int behavior. Even if luajit provided "lua_tointeger", sol would not use it directly