Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Branches are prone to be faster than conditional moves if they are correctly predicted, because they do not increase the critical path length. And utf-8 decoders are commonly run on all-ascii input. What were you benchmarking on?


I ran separate benchmarks on all-ASCII, BMP-only, and ascii with non-BMP. ASCII was not slower on the low-branch version.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: