3 ms·
Yes, please help optimize it.
by jensnockert 15y ago
Yes, please help optimize it.
- seanalltogether 15y agoThe question is can it be optimized? My knowledge of this stuff is very limited but I assume javascript object wrappers for number types and lack of SSE/SSE2 instructions will be the biggest blockers to performance.
- jensnockert 15y agoI doubt SSE2 would help much, at most 2x on arithmetic performance. Much time is spent fiddling with arrays, and the newer version of firefox the better that performance is. In addition there are many optimizations to do. A Pentium 1 can decode MP3s in assembly, so in Javascript we probably need a few times more power, but not insanely much more.
- nddrylliog 15y agoSwitching entirely from Strings to typed arrays would help a great deal imho. Right now the code is hybrid.