From: Wolfgang Denk Date: Wed, 06 Oct 2010 22:47:31 +0200 Subject: [U-Boot] [PATCH v2] lib/hashtable.c: add CONFIG_ENV_MIN_ENTRIES In-Reply-To: <1285966262-73388-1-git-send-email-andreas.devel@googlemail.com> References: <1285788486-43901-1-git-send-email-andreas.devel@googlemail.com> <1285966262-73388-1-git-send-email-andreas.devel@googlemail.com> Message-ID: <20101006204731.C597E153A7E@gemini.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dear =?UTF-8?q?Andreas=20Bie=C3=9Fmann?=, In message <1285966262-73388-1-git-send-email-andreas.devel@googlemail.com> you wrote: > > This patch adds a new config parameter for adjusting the calculation of > hash table size when importing a buffer. > > When importing a extremely small buffer (e.g. the default_environment) > the old calculation generated a hash table which could hold at most the > buffer content but no more entires. > > The new calculation add a fixed number of entries to the result to fit > better for small import buffers. This amount may be configured by the > user in board file to adjust the behaviour. > > Signed-off-by: Andreas Bie?mann > --- > v2: implement as suggested by Wolfgang > > lib/hashtable.c | 12 ++++++++---- > 1 files changed, 8 insertions(+), 4 deletions(-) Applied, thanks. Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de The human race is faced with a cruel choice: work or daytime tele- vision.