SeaweedFS is a distributed storage system for object storage (S3), file systems, Iceberg table buckets, and Lance vector buckets, designed to handle billions of files with O(1) disk access and effortless horizontal scaling.
Go blob-storagecloud-drivedistributed-file-systemdistributed-storageerasure-codingfusehadoop-hdfshdfskuberneteslancelancedbobject-storageposixs3s3-storageseaweedfstiered-file-systemvector-search
use memory pool
chrislu2ab0ad24a345
diff --git a/weed/util/http_util.go b/weed/util/http_util.goindex 8b66c6dc1e..2f42d3768e 100644--- a/weed/util/http_util.go+++ b/weed/util/http_util.go@@ -5,6 +5,7 @@ import ("encoding/json""errors""fmt"+ "github.com/chrislusf/seaweedfs/weed/util/mem""io""net/http""net/url"@@ -326,7 +327,8 @@ func ReadUrlAsStream(fileUrl string, cipherKey []byte, isContentGzipped bool, isvar (m int)- buf := make([]byte, 64*1024)+ buf := mem.Allocate(64 * 1024)+ defer mem.Free(buf)for {m, err = reader.Read(buf)