[#176] blobstor: Use 1 byte names of sub-directories in FS tree

Using 2 bytes length for directories in fs tree lead to large growth
in the number of directories.

Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
Leonard Lyubich 2020-11-18 17:58:16 +03:00 committed by Alex Vanin
parent 2d917a024f
commit 70a65c5aff

View file

@ -20,7 +20,7 @@ type fsTree struct {
rootDir string
}
const dirNameLen = 2 // in bytes
const dirNameLen = 1 // in bytes
var maxDepth = (sha256.Size - 1) / dirNameLen