This change drops an unneeded test, a branch and avoids a needless computation. Altogether, it saves 10 bytes of instructions on amd64.
It will mean that, on the path to MPASS(0), the same lookup and iteration will happen twice.
Differential D45558
swap_pager: small improvement to find_least dougm on Jun 11 2024, 7:38 AM. Authored by Tags None Referenced Files
Subscribers
Details
This change drops an unneeded test, a branch and avoids a needless computation. Altogether, it saves 10 bytes of instructions on amd64. It will mean that, on the path to MPASS(0), the same lookup and iteration will happen twice. The kernel still boots.
Diff Detail
|