diff options
author | Phil Carmody <ext-phil.2.carmody@nokia.com> | 2010-09-10 13:47:59 +0300 |
---|---|---|
committer | Kyle McMartin <kyle@mcmartin.ca> | 2010-10-21 21:12:19 -0400 |
commit | b1b1d4a6f244eb9513f006a188f7ed30d5014de5 (patch) | |
tree | 7fbdf118088f9d3746f384ea26312548ba5719dd /mm/mmzone.c | |
parent | f720817700de48a57f54535a5dd9783cca2d2d6b (diff) |
parisc: unwind - optimise linked-list searches for modules
Having many dozens of modules, the searches down the linked
list of sections would dominate the lookup time, dwarfing
any savings from the binary search within the section.
A simple move-to-front optimisation exploits the commonality
of the code paths taken, and in simple real-world tests
on other architectures reduced the number of steps in the
search to barely more than 1.
Signed-off-by: Phil Carmody <ext-phil.2.carmody@nokia.com>
Signed-off-by: Kyle McMartin <kyle@redhat.com>
Diffstat (limited to 'mm/mmzone.c')
0 files changed, 0 insertions, 0 deletions