From 4f4fc36944a5cba1b718dbfcbcf82a4e6897d714 Mon Sep 17 00:00:00 2001 From: chrislu Date: Sun, 25 Dec 2022 00:23:06 -0800 Subject: [PATCH] revert slat clearing --- weed/util/mem/slot_pool.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/weed/util/mem/slot_pool.go b/weed/util/mem/slot_pool.go index 1efb1b76b..70f2525b3 100644 --- a/weed/util/mem/slot_pool.go +++ b/weed/util/mem/slot_pool.go @@ -42,9 +42,6 @@ func getSlotPool(size int) (*sync.Pool, bool) { func Allocate(size int) []byte { if pool, found := getSlotPool(size); found { slab := *pool.Get().(*[]byte) - for i, _ := range slab { - slab[i] = 0 - } return slab[:size] } return make([]byte, size)