diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2021-02-07 15:03:11 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2021-02-07 15:33:35 +0000 |
| commit | 9ee392dc8ce678113ecc7827dedb23e0bdae3b84 (patch) | |
| tree | 39f7a8371c263410e42f5c2b241ffd154a318f25 /spawn.h | |
| parent | url-mode: be consistent; use xmalloc() + xrealloc() (diff) | |
url-mode: generate-key-combos: minor efficiency tweaks
* Use a do..while loop; this lets us drop the second half of the loop
condition.
* Call wcslen(prefix) once, *before* iterating the alphabet
characters.
* Step through the alphabet characters using a pointer, as this
avoids an indexed load (with possibly an imul instruction in
e.g. -Os builds).
Diffstat (limited to 'spawn.h')
0 files changed, 0 insertions, 0 deletions
