Repository navigation
1.3.5
- Marks the module as native (with
--!native) to increase performance.
Using this function before this update will take approx 2.6201 seconds. After this update it takes approx 1.6117 seconds (38.48% improvement). Certain functions are impacted more than others (only using new results in an 8.45% improvement)
local IM = require(game.ReplicatedStorage.InfiniteMath)
local ticker = tick()
for i = 1, 100000 do
local Num = IM.new(i)
Num *= i
Num ^= i
Num = IM.round(Num)
end
print(tick() - ticker)Currently, you need to enable the Luau Native Code beta to see the effects, and live servers will not be impacted until full release.
