From 70a65c5affabd3b6921da18c271b9ffb8bf09ac1 Mon Sep 17 00:00:00 2001 From: Leonard Lyubich Date: Wed, 18 Nov 2020 17:58:16 +0300 Subject: [PATCH] [#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 --- pkg/local_object_storage/blobstor/fstree.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/local_object_storage/blobstor/fstree.go b/pkg/local_object_storage/blobstor/fstree.go index d5d904a11..d7476389f 100644 --- a/pkg/local_object_storage/blobstor/fstree.go +++ b/pkg/local_object_storage/blobstor/fstree.go @@ -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