constant.js icon indicating copy to clipboard operation
constant.js copied to clipboard

Leverage new numbers.js functionality

Open rcpeng34 opened this issue 11 years ago • 2 comments

With the new built in numbers.js library, should we refactor existing code to take advantage of the constant time lookup for numbers?

rcpeng34 avatar Apr 26 '14 17:04 rcpeng34

Most definitely. Good thinking!

---Drew On Apr 26, 2014 10:07 AM, "Rick Peng" [email protected] wrote:

With the new built in numbers.js library, should we refactor existing code to take advantage of the constant time lookup for numbers?

— Reply to this email directly or view it on GitHubhttps://github.com/Syeoryn/constant.js/issues/4 .

Syeoryn avatar Apr 26 '14 17:04 Syeoryn

numbers.js has only been built to handle numbers under 1,000,000! After much thought I have determined that this is the best way to handle constant time number lookups - anything higher would have caused a space-time rift.

reem avatar Apr 26 '14 20:04 reem