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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user