Re: [External] Re: [PATCH 0/2] Optimize the process of scanning CPU for some functions

From: Hao Jia
Date: Mon Oct 24 2022 - 10:52:35 EST




On 2022/10/24 Peter Zijlstra wrote:
On Fri, Oct 21, 2022 at 02:15:56PM +0800, Hao Jia wrote:
These two patches optimize the process of scanning the CPU by
adjusting the search order or breaking the loop.

Is it really optimization, as in it now runs measurably faster, or just
cleanups?


I'm very sorry that my description confused you.

Yes, these two patches should just be cleanups.

Reduce the number of attempts by adjusting the scan order or breaking the loop in time.
Just from code analysis, it will lead to a little optimization in most cases.
But they won't bring significant performance gains. So, it's just cleanups.


Thanks,
Hao