Re: [PATCH] modules: Take a shortcut for checking if an address is in a module

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Vegard Nossum
Date: Wednesday, June 11, 2008 - 11:54 am

On 6/11/08, Arjan van de Ven <arjan@infradead.org> wrote:

Would it be overkill to simply drop the module addresses in an rbtree
and use that instead of a linear search over all the modules?

It would probably take a fair number of lines in C, and with a little
memory overhead, but the speed-up should be great. Should I give it a
try? (It would be arch-independent too.)


Vegard

-- 
"The animistic metaphor of the bug that maliciously sneaked in while
the programmer was not looking is intellectually dishonest as it
disguises that the error is the programmer's own creation."
	-- E. W. Dijkstra, EWD1036
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [PATCH] modules: Take a shortcut for checking if an ad ..., Vegard Nossum, (Wed Jun 11, 11:54 am)