/datum/profile
var/iterations = 1e4
proc/profile1(a)
return a++
proc/profile2(a)
profile2(a)
return a++
client/verb/profile()
set background = 1
var/datum/profile/p = new
for(var/i in 1 to p.iterations)
world << "[(i/p.iterations)*100]% complete."
. += p.profile1(.)
. += p.profile2(.)
Can anyone explain why profile2 appears to be a lot cheaper to call when defined in this manner? Someone posted this on our github and I just can't explain it or figure out why it would be.