summaryrefslogtreecommitdiff
path: root/config.def.h%25252525252525252525252525253fid%25252525252525252525252525253d3...
diff options
context:
space:
mode:
authorNRK <nrk@disroot.org>2023-07-07 17:00:42 +0600
committerHiltjo Posthuma <hiltjo@codemadness.org>2023-07-07 15:03:57 +0200
commit7ab0cb5ef0e19352fc5d64ae0d57a5cf4540acbf (patch)
tree9d68f06933733c75cceca65a19f1a16501946327 /config.def.h%25252525252525252525252525253fid%25252525252525252525252525253d3c91eed0fb74657c3fa25bc4fd65cd0aa88464c0%252525252525252525252525253fid%252525252525252525252525253d76eb5783046cf89ba6b7e9f8cdab35fe86d07a82%2525252525252525252525253fid%2525252525252525252525253d44c7de3dcf49ee568863f55610f40c7a05b4dfe7%25252525252525252525253fid%25252525252525252525253db3d9451c2ddfad7c1b10e9a868afed4d92b37e41%252525252525252525253fid%252525252525252525253db3d9451c2ddfad7c1b10e9a868afed4d92b37e41%2525252525252525253fid%2525252525252525253db3d9451c2ddfad7c1b10e9a868afed4d92b37e41&id2%2525252525252525253d3de85ca21cedf2a9f67755afc8ef031a9170b96a%25252525253fid%25252525253daa36bbfb852a1245e304c3164ea0ea7809bd8f06%252525253fid%252525253daa36bbfb852a1245e304c3164ea0ea7809bd8f06%2525253fid%2525253daa36bbfb852a1245e304c3164ea0ea7809bd8f06%25253fid%25253daa36bbfb852a1245e304c3164ea0ea7809bd8f06%253fid%253daa36bbfb852a1245e304c3164ea0ea7809bd8f06%3fid%3d8df553e0048733bab4bc85a6b76bcfd44c046e71?id=7ab0cb5ef0e19352fc5d64ae0d57a5cf4540acbf
parent0fe460dbd469a1d5b6a7140d0e1801935e4a923b (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 'config.def.h%25252525252525252525252525253fid%25252525252525252525252525253d3c91eed0fb74657c3fa25bc4fd65cd0aa88464c0%252525252525252525252525253fid%252525252525252525252525253d76eb5783046cf89ba6b7e9f8cdab35fe86d07a82%2525252525252525252525253fid%2525252525252525252525253d44c7de3dcf49ee568863f55610f40c7a05b4dfe7%25252525252525252525253fid%25252525252525252525253db3d9451c2ddfad7c1b10e9a868afed4d92b37e41%252525252525252525253fid%252525252525252525253db3d9451c2ddfad7c1b10e9a868afed4d92b37e41%2525252525252525253fid%2525252525252525253db3d9451c2ddfad7c1b10e9a868afed4d92b37e41&id2%2525252525252525253d3de85ca21cedf2a9f67755afc8ef031a9170b96a%25252525253fid%25252525253daa36bbfb852a1245e304c3164ea0ea7809bd8f06%252525253fid%252525253daa36bbfb852a1245e304c3164ea0ea7809bd8f06%2525253fid%2525253daa36bbfb852a1245e304c3164ea0ea7809bd8f06%25253fid%25253daa36bbfb852a1245e304c3164ea0ea7809bd8f06%253fid%253daa36bbfb852a1245e304c3164ea0ea7809bd8f06%3fid%3d8df553e0048733bab4bc85a6b76bcfd44c046e71?id=7ab0cb5ef0e19352fc5d64ae0d57a5cf4540acbf')
0 files changed, 0 insertions, 0 deletions