main: tag fdm loop with likely() and unlikely()

This commit is contained in:
Daniel Eklöf 2020-11-26 18:23:28 +01:00
parent 15b35b7641
commit addc374655
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

4
main.c
View file

@ -490,8 +490,8 @@ main(int argc, char *const *argv)
goto out; goto out;
} }
while (!aborted && (as_server || tll_length(wayl->terms) > 0)) { while (likely(!aborted && (as_server || tll_length(wayl->terms) > 0))) {
if (!fdm_poll(fdm)) if (unlikely(!fdm_poll(fdm)))
break; break;
} }