From 57745086ac72e67c33a8535b4916963b10777842 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Mon, 19 Jan 2009 09:50:07 +0000 Subject: Don't include the length in the hash function if all keywords have the same length. --- src/search.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/search.h') diff --git a/src/search.h b/src/search.h index 3ecf320..d9af416 100644 --- a/src/search.h +++ b/src/search.h @@ -2,7 +2,7 @@ /* Search algorithm. - Copyright (C) 1989-1998, 2000, 2002 Free Software Foundation, Inc. + Copyright (C) 1989-1998, 2000, 2002, 2009 Free Software Foundation, Inc. Written by Douglas C. Schmidt and Bruno Haible . @@ -113,6 +113,9 @@ public: /* Minimum length of the shortest keyword. */ int _min_key_len; + /* Whether the hash function includes the length. */ + bool _hash_includes_len; + /* User-specified or computed key positions. */ Positions _key_positions; -- cgit v1.2.1