OmegaNum.js
OmegaNum.js copied to clipboard
Performance issues with the constructor, fromString, and standardize
Run the following with profiler:
for(var i=0;i<10000;i++)OmegaNum.hyper(Math.random()*10+3|0)(Math.random()*100+3,Math.random()*100+3);
On my configuration, it ran for 15975ms, taking 3529.7ms in fromString, 3153.3ms in OmegaNum, and 3000.6ms in standardize (self time). The same functions appear by profiling True Infinity Beta. This is quite bad. Of these 3, I think fromString and standardize can be rewritten to perform much better. Maybe it is time to work on it.