From eb4539c305db7956727f1c7a9d3ecabd7808bdf7 Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Thu, 15 Mar 2018 14:21:07 -0600 Subject: [PATCH] libc/lzf: Update Kconfig comments --- libc/lzf/Kconfig | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/libc/lzf/Kconfig b/libc/lzf/Kconfig index 9bb34a33ec9..e59e014bea9 100644 --- a/libc/lzf/Kconfig +++ b/libc/lzf/Kconfig @@ -40,6 +40,17 @@ config LIBC_LZF_HLOG low-memory/faster configuration, use HLOG == 13; For best compression, use 15 or 16 (or more, up to 22). + Memory usage for the hash table will be approximately: + + 4 * (1 << CONFIG_LIBC_LZF_HLOG) + + For the default setting of 13, this is 32Kb. A setting of 12 would + be half that or about 16Kb. + + The application calling lzf_compress() must provide the hash table to + the compresser and may allocate that memory in the most efficient way + for the application. + #ifndef HLOG # define HLOG 13 #endif