Homec4science

Speed up utf8_strlen()

Authored by vrana <jakubv@fb.com> on Apr 19 2012, 05:20.

Description

Speed up utf8_strlen()

Summary:

mb_strlen()            3.1 us
count(phutil_utf8v()) 28.3 us
strlen(utf8_decode())  1.7 us

Test Plan:

phutil_utf8_strlen('čeština');

Reviewers: epriestley

Reviewed By: epriestley

CC: aran, Koolvin

Differential Revision: https://secure.phabricator.com/D2280

Details

Committed
vrana <jakubv@fb.com>Apr 19 2012, 18:41
Pushed
aubortMar 17 2017, 12:03
Parents
rPHUddadcca065ca: Highlight `monospace` in Diviner highlighter
Branches
Unknown
Tags
Unknown

Event Timeline

vrana <jakubv@fb.com> committed rPHU38e40c170360: Speed up utf8_strlen() (authored by vrana <jakubv@fb.com>).Apr 19 2012, 18:41