1
1
mirror of https://github.com/MarginaliaSearch/MarginaliaSearch.git synced 2025-10-05 21:22:39 +02:00

(index) Grow span writer buffer size

Apparently outlier spans can grow considerably large.
This commit is contained in:
Viktor Lofgren
2025-08-10 17:20:38 +02:00
parent e2ccff21bc
commit 85360e61b2

View File

@@ -12,7 +12,7 @@ import java.nio.file.StandardOpenOption;
public class IndexSpansWriter implements AutoCloseable {
private final FileChannel outputChannel;
private final ByteBuffer work = ByteBuffer.allocate(65536).order(ByteOrder.nativeOrder());
private final ByteBuffer work = ByteBuffer.allocate(4*1024*1024).order(ByteOrder.nativeOrder());
private long stateStartOffset = -1;
private int stateLength = -1;