mirror of
https://github.com/TangentFoxy/lume.git
synced 2024-11-19 07:04:24 +00:00
Improved lume.distance()'s performance on non-JIT
Replaced use of the exponent operator with multiplications, yielding a performance increase on non-JIT Lua: [5000000 calls, Lua 5.1] old func: 2.03 seconds new func: 1.17 seconds [5000000 calls, Lua 5.2] old func: 1.60 seconds new func: 0.89 seconds [2000000000 calls, LuaJIT 2.0.2] old func: 0.89 seconds new func: 0.89 seconds
This commit is contained in:
parent
1cc16ffacd
commit
a08436445d
Loading…
Reference in New Issue
Block a user