summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorNRK <nrk@disroot.org>2023-07-07 17:00:42 +0600
committerRafael Marçalo <raroma09@gmail.com>2023-07-09 19:34:17 +0100
commitf7420ea3722aaaac804bdfe9ee9c81314422d652 (patch)
tree6ce6d6225c50518746bcd270852bcf936df88925 /Makefile
parent47a29cb0e3f60270a71fd5fe49dc359179baa92b (diff)
drw: minor improvement to the nomatches cache
1. use `unsigned int` to store the codepoints, this avoids waste on common case where `long` is 64bits. and POSIX guarantees `int` to be at least 32bits so there's no risk of truncation. 2. since switching to `unsigned int` cuts down the memory requirement by half, double the cache size from 64 to 128. 3. instead of a linear search, use a simple hash-table for O(1) lookups.
Diffstat (limited to 'Makefile')
0 files changed, 0 insertions, 0 deletions