mirror of
https://github.com/MarginaliaSearch/MarginaliaSearch.git
synced 2025-02-23 21:18:58 +00:00
(*) Fix broken code in jmh
This commit is contained in:
parent
ee7792596d
commit
400f4840ad
@ -1,7 +1,5 @@
|
|||||||
package nu.marginalia.array;
|
package nu.marginalia.array;
|
||||||
|
|
||||||
import com.upserve.uppend.blobs.NativeIO;
|
|
||||||
|
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.nio.LongBuffer;
|
import java.nio.LongBuffer;
|
||||||
import java.nio.channels.FileChannel;
|
import java.nio.channels.FileChannel;
|
||||||
@ -33,12 +31,6 @@ public class SimulatedNaiveArray implements LongArray {
|
|||||||
public void close() {
|
public void close() {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public void advice(NativeIO.Advice advice) throws IOException {}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public void advice(NativeIO.Advice advice, long start, long end) throws IOException {}
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public long get(long pos) {
|
public long get(long pos) {
|
||||||
return buffers[(int) pos/bufferSize].get((int) pos%bufferSize);
|
return buffers[(int) pos/bufferSize].get((int) pos%bufferSize);
|
||||||
|
Loading…
Reference in New Issue
Block a user