[U-Boot] [PATCH v2] lib/hashtable.c: add CONFIG_ENV_MIN_ENTRIES
Wolfgang Denk
wd at denx.de
Wed Oct 6 22:47:31 CEST 2010
Dear =?UTF-8?q?Andreas=20Bie=C3=9Fmann?=,
In message <1285966262-73388-1-git-send-email-andreas.devel at 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 <andreas.devel at googlemail.com>
> ---
> 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.
More information about the U-Boot
mailing list