mycoboco / wcwidth.js

a javascript porting of C's wcwidth()
http://code.woong.org/wcwidth.js
Other
12 stars 2 forks source link

optimize for speed after profiling #2

Closed mycoboco closed 10 years ago

mycoboco commented 10 years ago

Even if not the case for quokka, some applications may need to determine the wc-width of many or long strings, which justifies optimization for speed.

mycoboco commented 10 years ago

For wide strings, execution time reduced to about 55% by removing checks for assertions and adding small performance tweaks.

Closed by 17bef7161920f6b0defcacbed556ceefcd575bbc