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

(index) Improve disk locality of the positions data

This commit is contained in:
Viktor Lofgren
2025-08-11 20:59:11 +02:00
parent 73557edc67
commit 7b552afd6b

View File

@@ -23,13 +23,9 @@ import java.nio.file.StandardOpenOption;
* each posting in the file.
*/
public class PositionsFileConstructor implements AutoCloseable {
private final int BLOCK_SIZE = 4096;
private final Path file;
private final FileChannel channel;
private long offset;
public PositionsFileConstructor(Path file) throws IOException {
this.file = file;