From 15a7a7ef207610d26a312f23b8806498f44e5e71 Mon Sep 17 00:00:00 2001 From: Riadh <22998716+KiKoS0@users.noreply.github.com> Date: Mon, 4 May 2026 16:50:51 +0100 Subject: [PATCH] set lower block cache size & disable bloom filters when in memory --- expr.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/expr.go b/expr.go index 0abd19e..d92ab13 100644 --- a/expr.go +++ b/expr.go @@ -170,7 +170,11 @@ func NewAggregateEvaluator[T Evaluable]( return reflect.ValueOf(val).Elem().Interface().(T), err }, - FS: vfs.NewMem(), + // No FS specified: use in-memory storage with reduced settings since + // a block cache and bloom filters are pointless without disk reads. + FS: vfs.NewMem(), + BlockCacheSize: 8 << 20, + DisableBloomFilter: true, } // Attempt to unmarshal an empty byte slice, ensuring that we have // a concrete type instead of an interface.