Skip to content
Commit fc5fc76b authored by Andreas Bießmann's avatar Andreas Bießmann Committed by Wolfgang Denk
Browse files

lib/hashtable.c: add CONFIG_ENV_MIN_ENTRIES



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's avatarAndreas Bießmann <andreas.devel@googlemail.com>
parent f44a928e
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment