diff options
author | Alexey Dobriyan <adobriyan@gmail.com> | 2016-08-24 21:03:05 +0300 |
---|---|---|
committer | Michal Marek <mmarek@suse.com> | 2016-08-24 22:34:19 +0200 |
commit | dee81e9886748594babac67c14b0f720148e255d (patch) | |
tree | 5c1bc1e5b8c6475e7d5845593f958e34807bfa1c /scripts/genksyms | |
parent | e007c53397acb5554e226693e3bff54a312ccd96 (diff) | |
download | op-kernel-dev-dee81e9886748594babac67c14b0f720148e255d.zip op-kernel-dev-dee81e9886748594babac67c14b0f720148e255d.tar.gz |
fixdep: faster CONFIG_ search
Do you think kernel build is 100% dominated by gcc? You are wrong!
One small utility called "fixdep" consistently manages to sneak into
profile's first page (unless you have small monitor of course).
The choke point is this clever code:
for (; m < end; m++) {
if (*m == INT_CONF) { p = (char *) m ; goto conf; }
if (*m == INT_ONFI) { p = (char *) m-1; goto conf; }
if (*m == INT_NFIG) { p = (char *) m-2; goto conf; }
if (*m == INT_FIG_) { p = (char *) m-3; goto conf; }
4 branches per 4 characters is not fast.
Use strstr(3), so that SSE2 etc can be used.
With this patch, fixdep is so deep at the bottom, it is hard to find it.
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: Michal Marek <mmarek@suse.com>
Diffstat (limited to 'scripts/genksyms')
0 files changed, 0 insertions, 0 deletions