Re: dev_get_by_index is not hashed: O(n)

From: David S. Miller (
Date: Fri Aug 30 2002 - 16:08:15 EST

   From: Bernd Eckenfels <>
   Date: Fri, 30 Aug 2002 11:32:17 +0200
   the SIOCGIFCONF used to take a lot of time, cause the buffer was increasing
   more slowly. Someone could try to use even more aggresive algo. or just use
   a bigger start value. I havent benchmarked it, but I guess it it the getting
   of all the protocol params which slows it.

Or use NETLINK sockets which are built specifically to do these kinds
of operations efficiently.
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to
More majordomo info at

This archive was generated by hypermail 2b29 : Sat Aug 31 2002 - 22:00:02 EST