From: Steven Rostedt Date: Fri, 28 Jan 2011 04:12:05 +0000 (-0500) Subject: tracing/filter: Optimize short ciruit check X-Git-Tag: v2.6.39-rc1~510^2~39^2~6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=55719274188f13cff9e3bd11fdd4c0e7617cd03d;p=pandora-kernel.git tracing/filter: Optimize short ciruit check The test if we should break out early for OR and AND operations can be optimized by comparing the current result with (pred->op == OP_OR) That is if the result is true and the op is an OP_OR, or if the result is false and the op is not an OP_OR (thus an OP_AND) we can break out early in either case. Otherwise we continue processing. Cc: Tom Zanussi Signed-off-by: Steven Rostedt --- Reading git-diff-tree failed