diff options
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 'dmenu.1%25252525252525252525252525252525252525252525252525252525252525253fid%25252525252525252525252525252525252525252525252525252525252525253d86e9e6f1ecc4711d8fe447f5c0f2c1bd0feb8568%252525252525252525252525252525252525252525252525252525252525253fid%252525252525252525252525252525252525252525252525252525252525253d86e9e6f1ecc4711d8fe447f5c0f2c1bd0feb8568&id2%252525252525252525252525252525252525252525252525252525252525253deadf090413c530e69e8568492ebeb4b4087bd2ad%252525252525252525252525252525252525252525252525252525253fid%252525252525252525252525252525252525252525252525252525253daa36bbfb852a1245e304c3164ea0ea7809bd8f06%2525252525252525252525252525252525252525252525252525253fid%2525252525252525252525252525252525252525252525252525253daa36bbfb852a1245e304c3164ea0ea7809bd8f06&id2%2525252525252525252525252525252525252525252525252525253d8df553e0048733bab4bc85a6b76bcfd44c046e71%25252525252525252525252525252525252525252525252525253fid%25252525252525252525252525252525252525252525252525253daa36bbfb852a1245e304c3164ea0ea7809bd8f06%252525252525252525252525252525252525252525253fid%252525252525252525252525252525252525252525253daa36bbfb852a1245e304c3164ea0ea7809bd8f06%2525252525252525252525252525252525252525253fid%2525252525252525252525252525252525252525253d8df553e0048733bab4bc85a6b76bcfd44c046e71%25252525252525252525252525252525252525253fid%25252525252525252525252525252525252525253d7ab0cb5ef0e19352fc5d64ae0d57a5cf4540acbf%252525252525252525252525252525252525253fid%252525252525252525252525252525252525253d7ab0cb5ef0e19352fc5d64ae0d57a5cf4540acbf&id2%252525252525252525252525252525252525253d0fe460dbd469a1d5b6a7140d0e1801935e4a923b%2525252525252525252525252525252525253fid%2525252525252525252525252525252525253d7ab0cb5ef0e19352fc5d64ae0d57a5cf4540acbf&id2%2525252525252525252525252525252525253d0fe460dbd469a1d5b6a7140d0e1801935e4a923b%25252525252525252525252525252525253fid%25252525252525252525252525252525253d7ab0cb5ef0e19352fc5d64ae0d57a5cf4540acbf%252525252525252525252525252525253fid%252525252525252525252525252525253d0fe460dbd469a1d5b6a7140d0e1801935e4a923b%2525252525252525252525252525253fid%2525252525252525252525252525253ddfbbf7f6e1b22ccf9e5a45d77ee10995577fb4fc%25252525252525252525252525253fid%25252525252525252525252525253ddfbbf7f6e1b22ccf9e5a45d77ee10995577fb4fc%252525252525252525252525253fid%252525252525252525252525253ddfbbf7f6e1b22ccf9e5a45d77ee10995577fb4fc%2525252525252525252525253fid%2525252525252525252525253ddfbbf7f6e1b22ccf9e5a45d77ee10995577fb4fc%252525252525252525253fshowmsg%252525252525252525253d1%252525253fid%252525253daa36bbfb852a1245e304c3164ea0ea7809bd8f06%2525253fid%2525253d8df553e0048733bab4bc85a6b76bcfd44c046e71%25253fid%25253d7ab0cb5ef0e19352fc5d64ae0d57a5cf4540acbf%253fid%253d7ab0cb5ef0e19352fc5d64ae0d57a5cf4540acbf&id2%253d0fe460dbd469a1d5b6a7140d0e1801935e4a923b%3fid%3d7ab0cb5ef0e19352fc5d64ae0d57a5cf4540acbf?id=7ab0cb5ef0e19352fc5d64ae0d57a5cf4540acbf')
0 files changed, 0 insertions, 0 deletions