timdream / jszhuyin

JS 注音:JavaScript 自動選字注音輸入法;"Smart" Chinese Zhuyin Input Method in JavaScript.
https://jszhuyin.timdream.org/
MIT License
223 stars 19 forks source link

Remove DataView usage #37

Open timdream opened 7 years ago

timdream commented 7 years ago

This is fun. DataView is actually not 50% slower than bitwise operation.

https://jsperf.com/dataview-vs-typed-array-views

timdream commented 7 years ago

But I am not interested in creating my own byte to float32 conversion...