Hacker News new | comments | show | ask | jobs | submit login

I know you're not too interested in performance here, but replacing DataView with a Uint8Array will probably get you a 10x+ win - DataView is extremely slow and V8 can't optimize calls to Program.getUint8(PC) in the same way that it can optimize Program[PC].



Thanks, indeed I didn't make any efforts to make it faster, but this seems fair... I honestly didn't know DataView was that slow, it got fibonacci(40) down to 1m53s. Faster than PERL according to http://fengmk2.com/blog/2011/fibonacci/nodejs-python-php-rub...




Guidelines | FAQ | Support | API | Security | Lists | Bookmarklet | DMCA | Apply to YC | Contact

Search: