4 ms·
Would you be able to file a Firefox bug on the DataView problem? Or if you have an example link we could look at that would be greatly appreciated.
by hafta 6y ago
Would you be able to file a Firefox bug on the DataView problem? Or if you have an example link we could look at that would be greatly appreciated.
- mschuetz 6y agoThere is this 6 year old and open report here: https://bugzilla.mozilla.org/show_bug.cgi?id=1065894 https://bugzilla.mozilla.org/show_bug.cgi?id=1065894 Chrome has improved DataView 2 years ago: https://v8.dev/blog/dataview https://v8.dev/blog/dataview A rather basic jsperf is here: https://jsperf.com/dataview-float-int https://jsperf.com/dataview-float-int The results are that the u8 hack is equally slow in firefox and chrome (~90ops/sec), the DataView version is 10x faster in chrome(945ops/sec) but almost 4x slower in firefox(25ops/sec).