summaryrefslogtreecommitdiff
path: root/dmenu_run%2525252525252525252525252525252525252525253fid%25252525252525252525...
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 /dmenu_run%2525252525252525252525252525252525252525253fid%2525252525252525252525252525252525252525253da02a1a662362a1e74f627c7f47335b5aeda79c67%25252525252525252525252525252525252525253fid%25252525252525252525252525252525252525253d8ac44eb75a3e2190aa7b89548956b2de33c5a6ce%252525252525252525252525252525252525253fid%252525252525252525252525252525252525253debd94a6c00e0726d271d4f0c88ec67b4e290b1bd%2525252525252525252525252525252525253fid%2525252525252525252525252525252525253debd94a6c00e0726d271d4f0c88ec67b4e290b1bd%25252525252525252525252525252525253fid%25252525252525252525252525252525253d2b31952731bc1c15d9a9521579b7609d50a65f01%252525252525252525252525252525253fid%252525252525252525252525252525253d2b31952731bc1c15d9a9521579b7609d50a65f01%2525252525252525252525252525253fid%2525252525252525252525252525253d2b31952731bc1c15d9a9521579b7609d50a65f01%25252525252525252525252525253fid%25252525252525252525252525253d2b31952731bc1c15d9a9521579b7609d50a65f01%252525252525252525252525253fid%252525252525252525252525253d2b31952731bc1c15d9a9521579b7609d50a65f01%2525252525252525252525253fid%2525252525252525252525253dc01f36a1f30c9a8846b75269522219b8f5ff6821%25252525252525252525253fid%25252525252525252525253d168221b2f825c42c874e1d9590505f29e35465aa%252525252525252525253fid%252525252525252525253ddc77337ef35a52e1da8a74339bc39f32e6e5ab56%2525252525252525253fid%2525252525252525253d7b1493a63162875ba591883e480bd36a063cf222%25252525252525253fid%25252525252525253ddd29c5d48084ae0f61a43bfbd5119fb480d83fb7%252525252525253fid%252525252525253d70b3418e3e44a562cec860033d2a3bbf640f3084%2525252525253fid%2525252525253d70b3418e3e44a562cec860033d2a3bbf640f3084%253fid%253d8df553e0048733bab4bc85a6b76bcfd44c046e71%3fid%3d7ab0cb5ef0e19352fc5d64ae0d57a5cf4540acbf?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 'dmenu_run%2525252525252525252525252525252525252525253fid%2525252525252525252525252525252525252525253da02a1a662362a1e74f627c7f47335b5aeda79c67%25252525252525252525252525252525252525253fid%25252525252525252525252525252525252525253d8ac44eb75a3e2190aa7b89548956b2de33c5a6ce%252525252525252525252525252525252525253fid%252525252525252525252525252525252525253debd94a6c00e0726d271d4f0c88ec67b4e290b1bd%2525252525252525252525252525252525253fid%2525252525252525252525252525252525253debd94a6c00e0726d271d4f0c88ec67b4e290b1bd%25252525252525252525252525252525253fid%25252525252525252525252525252525253d2b31952731bc1c15d9a9521579b7609d50a65f01%252525252525252525252525252525253fid%252525252525252525252525252525253d2b31952731bc1c15d9a9521579b7609d50a65f01%2525252525252525252525252525253fid%2525252525252525252525252525253d2b31952731bc1c15d9a9521579b7609d50a65f01%25252525252525252525252525253fid%25252525252525252525252525253d2b31952731bc1c15d9a9521579b7609d50a65f01%252525252525252525252525253fid%252525252525252525252525253d2b31952731bc1c15d9a9521579b7609d50a65f01%2525252525252525252525253fid%2525252525252525252525253dc01f36a1f30c9a8846b75269522219b8f5ff6821%25252525252525252525253fid%25252525252525252525253d168221b2f825c42c874e1d9590505f29e35465aa%252525252525252525253fid%252525252525252525253ddc77337ef35a52e1da8a74339bc39f32e6e5ab56%2525252525252525253fid%2525252525252525253d7b1493a63162875ba591883e480bd36a063cf222%25252525252525253fid%25252525252525253ddd29c5d48084ae0f61a43bfbd5119fb480d83fb7%252525252525253fid%252525252525253d70b3418e3e44a562cec860033d2a3bbf640f3084%2525252525253fid%2525252525253d70b3418e3e44a562cec860033d2a3bbf640f3084%253fid%253d8df553e0048733bab4bc85a6b76bcfd44c046e71%3fid%3d7ab0cb5ef0e19352fc5d64ae0d57a5cf4540acbf?id=7ab0cb5ef0e19352fc5d64ae0d57a5cf4540acbf')
0 files changed, 0 insertions, 0 deletions