From: Gerrit Renker Date: Sun, 3 Dec 2006 16:53:27 +0000 (-0200) Subject: [DCCP] tfrc: Binary search for reverse TFRC lookup X-Git-Tag: v2.6.20-rc1~34^2~40^2~13^2~1^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2bbf29acd8f7adcf161de7e5d891b4095687a59f;p=pandora-kernel.git [DCCP] tfrc: Binary search for reverse TFRC lookup This replaces the linear search algorithm for reverse lookup with binary search. It has the advantage of better scalability: O(log2(N)) instead of O(N). This means that the average number of iterations is reduced from 250 (linear search if each value appears equally likely) down to at most 9. Signed-off-by: Gerrit Renker Acked-by: Ian McDonald Signed-off-by: Arnaldo Carvalho de Melo --- Reading git-diff-tree failed