aboutsummaryrefslogtreecommitdiffstats
path: root/src/vars.c
diff options
context:
space:
mode:
authorLukas Fleischer <calcurse@cryptocrack.de>2011-06-09 18:09:22 +0200
committerLukas Fleischer <calcurse@cryptocrack.de>2011-07-02 10:09:18 +0200
commit496f0d98f8b1852a2e7721682e792a850ae66483 (patch)
tree3f496e05590f4176ec2c36c43b778d68ad1af384 /src/vars.c
parent33ce6cd8f885e8bdaab7c058d65a3c2193463ab9 (diff)
downloadcalcurse-496f0d98f8b1852a2e7721682e792a850ae66483.tar.gz
calcurse-496f0d98f8b1852a2e7721682e792a850ae66483.zip
utf8_width() performance improvements
* Sort character width lookup table by character ranges. * Use binary search instead of linear search for UTF-8 character width lookups which will speed up utf8_width() (O(log n) instead of O(n)). Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
Diffstat (limited to 'src/vars.c')
0 files changed, 0 insertions, 0 deletions