Skip to content

1.3.5

Choose a tag to compare

@KdudeDev KdudeDev released this 13 Sep 14:48
· 26 commits to main since this release
02c2de0
  • 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.

image