From: Andrea Bittau Date: Tue, 14 Nov 2006 15:19:45 +0000 (-0200) Subject: [DCCP] ACKVEC: Optimization - Do not traverse records if none will be found X-Git-Tag: v2.6.20-rc1~34^2~40^2~377 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d23ca15a21804631d8f787a0cc5646df81b9c2ea;p=pandora-kernel.git [DCCP] ACKVEC: Optimization - Do not traverse records if none will be found Do not traverse the list of ack vector records [proportional to window size] when we know we will not find what we are looking for. This is especially useful because ack vectors are checked twice: 1) Upon parsing of options. 2) Upon notification of a new ack. All of the work will occur during check #1. Therefore, when check #2 is performed, no new work will be done. This is now "detected" and there is no performance hit when doing #2. Signed-off-by: Andrea Bittau Signed-off-by: Gerrit Renker Signed-off-by: Arnaldo Carvalho de Melo --- Reading git-diff-tree failed