Re: dev_get_by_index is not hashed: O(n)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



   From: Bernd Eckenfels <ecki-news2002-08@lina.inka.de>
   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.
-
: send the line "unsubscribe linux-net" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux 802.1Q VLAN]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Git]     [Bugtraq]     [Yosemite News and Information]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux PCI]     [Linux Admin]     [Samba]

  Powered by Linux