break_eternity.js
break_eternity.js copied to clipboard
enforce usage of constants instead of constructing decimals on the spot?
trafficstars
pros: less object construction/destruction.
cons: decimals aren't immutable, so someone could accidentally change the value of 0 and break everything.
so the time/memory savings would have to outweigh the threat of destruction.
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/freeze
Oh, that sounds very useful...