I've ported an Excel retirement calculator into javascript. There are 35 worksheets in the original excel containing many recursive calculations, all of which I've converted to JS. JS is running slower (1-2 seconds compared to Excel's instantaneous). I am caching the resursive calculations already to speed things up and prevent stack overflows in the browser.
Is it realistic to try and make the the JS faster? How does Excel manage to be so efficient?
I read somewhere that Excel only re-calculates when a cell's precedents have been modified. Even still, it seems to me that Excel is pretty much instantaneous no matter how much data needs to be re-calculated.
Thanks