mp4box.js
mp4box.js copied to clipboard
Bit manipulation performance
Some results indicate that bit manipulation using DataView is not efficient: http://jsperf.com/dataview-vs-typed-array-views https://groups.google.com/forum/#!topic/dashjs/5PmEkjKILDQ (dash.js member-only)
We should reconsider the use of DataView, ie. the use of DataStream.
Do we have alternatives? Typed array view? Bit twiddling? Others?
The JSPerf site indicates (at least for me in Chrome) that a 100x speed-up factor can be achieved when using your own bit-twiddling operations. So far, I haven't hit perf issues. If it happens, we'll start from here probably. But that's low priority.
Old topic but dataview seems to have gotten better? https://v8.dev/blog/dataview