Fox*_*Fox 5 performance lua if-statement runtime
当我用lua检查两个条件时,哪个方式的运行时间更快?
if bool and somefuntion() then
do stuff
end
Run Code Online (Sandbox Code Playgroud)
要么
if bool then
if somefuntion() then
do stuff
end
end
Run Code Online (Sandbox Code Playgroud)
?
归档时间: |
|
查看次数: |
391 次 |
最近记录: |