From mboxrd@z Thu Jan 1 00:00:00 1970 From: "David Dabbs" Subject: Performance improvements to key comparison functions Date: Mon, 12 Jul 2004 03:48:45 -0500 Message-ID: <20040712084615.29D4915F82@mail03.powweb.com> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: list-help: list-unsubscribe: list-post: Errors-To: flx@namesys.com List-Id: Content-Type: text/plain; charset="us-ascii" To: reiserfs-list@namesys.com It appears that by removing some conditionals in the reiser4 key comparison functions key comparison performance improves by at least 2x. Using a purpose-built znode_contains_key_strict and the new comparison code, cache scanning could be almost three times as fast -- even faster with a single unsigned char 'hint' member added to the znode structure. A writeup, including the timings and the code, is available at http://dabbs.net/reiser4 I'd be interested in your feedback. David Dabbs