SYMBOL INDEX (3311 symbols across 178 files) FILE: process_output.java class process_output (line 25) | public class process_output { method main (line 27) | public static void main(String... args) throws Exception { FILE: src/main/go/AlexanderYastrebov/calc.go type measurement (line 15) | type measurement struct function main (line 19) | func main() { function processFile (line 43) | func processFile(filename string) map[string]*measurement { function process (line 74) | func process(data []byte) map[string]*measurement { function processChunk (line 132) | func processChunk(data []byte) map[string]*measurement { function round (line 241) | func round(x float64) float64 { function roundJava (line 247) | func roundJava(x float64) float64 { function parseNumber (line 263) | func parseNumber(data []byte) int64 { FILE: src/main/go/AlexanderYastrebov/calc_test.go function TestRoundJava (line 9) | func TestRoundJava(t *testing.T) { function TestParseNumber (line 32) | func TestParseNumber(t *testing.T) { function BenchmarkParseNumber (line 54) | func BenchmarkParseNumber(b *testing.B) { function BenchmarkProcess (line 63) | func BenchmarkProcess(b *testing.B) { FILE: src/main/go/elh/main.go constant defaultMeasurementsPath (line 37) | defaultMeasurementsPath = "measurements.txt" constant maxNameLen (line 38) | maxNameLen = 100 constant maxNameNum (line 39) | maxNameNum = 10000 constant defaultParseChunkSizeMB (line 42) | defaultParseChunkSizeMB = 64 constant mb (line 43) | mb = 1024 * 1024 type Stats (line 46) | type Stats struct function round (line 52) | func round(x float64) float64 { function parseFloatFast (line 58) | func parseFloatFast(bs []byte) float64 { function parseAt (line 80) | func parseAt(f *os.File, buf []byte, offset int64, size int) map[string]... function printResults (line 157) | func printResults(stats map[string]*Stats) { // doesn't help function main (line 184) | func main() { FILE: src/main/java-22/dev/morling/onebrc/CalculateAverage_linl33.java class CalculateAverage_linl33 (line 34) | public class CalculateAverage_linl33 { method main (line 67) | public static void main() throws InterruptedException, IOException { method calcChunkBounds (line 94) | private static long[] calcChunkBounds(final long mappedAddr, final lon... method printSorted (line 107) | private static void printSorted(final HashTable temperatureMeasurement... method printAggMeasurement (line 132) | private static void printAggMeasurement(final AggregatedMeasurement ag... method printAsDouble (line 154) | private static void printAsDouble(final long addr) { method round (line 159) | private static double round(final double d) { class CalculateAverageTask (line 163) | private static class CalculateAverageTask implements Runnable { method CalculateAverageTask (line 174) | public CalculateAverageTask(HashTable[] maps, long[] chunkBounds, in... method run (line 182) | @Override method processTrailingBytes (line 219) | private void processTrailingBytes(long lineStart, method processLine (line 233) | private void processLine(final long lineStart, final long lfAddress) { class HashTable (line 276) | private static class HashTable { method HashTable (line 289) | public HashTable() { method getOffset (line 300) | public long getOffset(final long index) { method putEntry (line 304) | public void putEntry(final long keyAddress, final int keyLength, fin... method putEntryInternal (line 309) | private void putEntryInternal(final long hash, method merge (line 351) | public void merge(final HashTable other) { method add (line 371) | private void add(final long sparseOffset, method mismatch (line 390) | private static boolean mismatch(final long leftAddr, final long righ... method hash (line 414) | private static long hash(final long keyAddress, final int keyLength) { method truncateHash (line 429) | private static long truncateHash(final long hash) { class MallocArena (line 434) | private static class MallocArena implements Arena { method MallocArena (line 455) | public MallocArena(Arena arena) { method allocate (line 459) | @Override method scope (line 464) | @Override method close (line 469) | @Override method malloc (line 474) | private static MemorySegment malloc(final long byteSize) { method free (line 483) | protected static void free(final MemorySegment address) { class CallocArena (line 493) | private static class CallocArena extends MallocArena { method CallocArena (line 494) | public CallocArena(Arena arena) { method allocate (line 498) | @Override method calloc (line 503) | private static MemorySegment calloc(final long byteSize) { method compareTo (line 515) | @Override FILE: src/main/java/dev/morling/onebrc/CalculateAverage_0xshivamagarwal.java class CalculateAverage_0xshivamagarwal (line 31) | public class CalculateAverage_0xshivamagarwal { method mergeFn (line 39) | private static long[] mergeFn(final long[] v1, final long[] v2) { method toString (line 47) | private static String toString(final Map.Entry entry) { method parseData (line 59) | private static Map parseData( method main (line 100) | public static void main(String[] args) throws IOException { FILE: src/main/java/dev/morling/onebrc/CalculateAverage_3j5a.java class CalculateAverage_3j5a (line 34) | public class CalculateAverage_3j5a { method main (line 38) | public static void main(String[] args) throws IOException { method Rules (line 80) | Rules() { class Station (line 90) | static class Station { method Station (line 111) | Station(byte[] name, int length) { method detachFromMeasurementBuffer (line 116) | public void detachFromMeasurementBuffer() { method equals (line 122) | @Override method hashCode (line 127) | @Override class StationMeasurementStatistics (line 145) | private static class StationMeasurementStatistics { method StationMeasurementStatistics (line 154) | StationMeasurementStatistics(StationMeasurement stationMeasurement) { method getName (line 161) | public String getName() { method add (line 168) | void add(StationMeasurement measurement) { method merge (line 173) | void merge(StationMeasurementStatistics other) { method update (line 177) | private void update(int count, int min, int max, long sum) { method toString (line 188) | @Override method nextStationMeasurement (line 200) | private static StationMeasurement nextStationMeasurement(byte[] measur... method map (line 224) | private static MappedByteBuffer map(MeasurementsSlice slice, FileChann... method slice (line 233) | private static List slice(RandomAccessFile measurem... method slice (line 242) | private static List slice(RandomAccessFile measurem... FILE: src/main/java/dev/morling/onebrc/CalculateAverage_AbstractKamen.java class CalculateAverage_AbstractKamen (line 33) | public class CalculateAverage_AbstractKamen { class Measurement (line 37) | private static class Measurement { method toString (line 43) | public String toString() { method round (line 47) | private double round(double value) { method main (line 52) | public static void main(String[] args) throws IOException { method aggregateMeasurements (line 67) | private static Measurement aggregateMeasurements(Measurement src, Meas... method getMeasurements (line 75) | private static Map getMeasurements(BufferSupplier... method parseAsInt (line 106) | private static int parseAsInt(int valueLen, byte[] bytes) { method takeMeasurement (line 116) | private static void takeMeasurement(int temperature, Map getParallelBufferStream(RandomAc... type BufferSupplier (line 148) | interface BufferSupplier extends Supplier { class BufferSupplierIterator (line 151) | class BufferSupplierIterator implements Iterator { method BufferSupplierIterator (line 158) | public BufferSupplierIterator(RandomAccessFile raf, FileChannel fc, in... method hasNext (line 165) | @Override method next (line 170) | @Override method getEnd (line 188) | private long getEnd() throws IOException { method getBufferSupplier (line 198) | private BufferSupplier getBufferSupplier(long position, long end) { FILE: src/main/java/dev/morling/onebrc/CalculateAverage_C5H12O5.java class CalculateAverage_C5H12O5 (line 60) | @SuppressWarnings("unchecked") method fragment (line 70) | private static long[] fragment(Path path) throws IOException { method main (line 95) | public static void main(String[] args) throws Exception { class Calculator (line 124) | private static class Calculator implements Callable process() throws InterruptedEx... type LineFinder (line 261) | private interface LineFinder { method initUnsafe (line 269) | static Unsafe initUnsafe() { method previousLong (line 280) | static long previousLong(byte[] bytes, long offset) { method markHighestBit (line 287) | static long markHighestBit(long longBytes) { method fromRight (line 295) | int fromRight(long longBytes); method clearLeft (line 300) | long clearLeft(long longBytes, int keepNum); type LELineFinder (line 302) | enum LELineFinder implements LineFinder { method fromRight (line 313) | @Override method clearLeft (line 318) | @Override type BELineFinder (line 324) | enum BELineFinder implements LineFinder { method fromRight (line 335) | @Override method clearLeft (line 340) | @Override class Station (line 350) | private static class Station { method Station (line 356) | public Station(byte[] bytes) { method Station (line 360) | public Station(byte[] bytes, int hash, int from, int to) { method slice (line 365) | public Station slice(int hash, int from, int to) { method copy (line 372) | public Station copy() { method equals (line 379) | @Override method hashCode (line 385) | @Override class MeasurementData (line 394) | private static class MeasurementData { method MeasurementData (line 400) | public MeasurementData(int value) { method merge (line 407) | public MeasurementData merge(int value) { method merge (line 411) | public MeasurementData merge(MeasurementData other) { method merge (line 415) | public MeasurementData merge(int min, int max, long sum, int count) { method toString (line 423) | @Override FILE: src/main/java/dev/morling/onebrc/CalculateAverage_EduardoSaverin.java class CalculateAverage_EduardoSaverin (line 34) | public class CalculateAverage_EduardoSaverin { method initUnsafe (line 43) | private static Unsafe initUnsafe() { class ResultRow (line 60) | private static final class ResultRow { method ResultRow (line 66) | private ResultRow(double v) { method toString (line 73) | public String toString() { method round (line 77) | private double round(double value) { method getChunks (line 89) | static List getChunks(FileChannel fileChannel) throws IOExcepti... class SimplerHashMap (line 115) | static class SimplerHashMap { method putOrMerge (line 120) | public void putOrMerge(final byte[] key, final short length, final i... method unsafeEquals (line 145) | static boolean unsafeEquals(final byte[] a, final byte[] b, final sh... method getAll (line 195) | public List getAll() { class Task (line 207) | private static class Task implements Runnable { method Task (line 212) | public Task(Chunk chunk) { method run (line 217) | @Override method main (line 304) | public static void main(String[] args) throws IOException, Interrupted... FILE: src/main/java/dev/morling/onebrc/CalculateAverage_JaimePolidura.java class CalculateAverage_JaimePolidura (line 28) | public final class CalculateAverage_JaimePolidura { method initUnsafe (line 33) | private static Unsafe initUnsafe() { method main (line 44) | public static void main(String[] args) throws Exception { method joinWorkers (line 54) | private static void joinWorkers(Worker[] workers) throws InterruptedEx... method startWorkers (line 60) | private static void startWorkers(Worker[] workers) { method createWorkers (line 66) | private static Worker[] createWorkers() throws Exception { method mergeWorkersResults (line 87) | private static Map mergeWorkersResults(Worker[] worker... method printResults (line 113) | private static void printResults(Map results) { class Worker (line 138) | static class Worker extends Thread { method Worker (line 150) | public Worker(MemorySegment mmappedFile, long mmappedFileSize, long ... method run (line 161) | @Override method parseTemperature (line 181) | private void parseTemperature() { method parseName (line 229) | private void parseName() { method mask (line 268) | private long mask(long word, int length) { method hasByte (line 273) | private long hasByte(long word, long pattern) { method adjustStartAddr (line 278) | private void adjustStartAddr() { method adjustEndAddr (line 290) | private void adjustEndAddr() { class SimpleMap (line 302) | static class SimpleMap { method SimpleMap (line 306) | public SimpleMap(int size) { method put (line 311) | public void put(long hashToPut, byte[] nameToPut, int nameLength, in... method toIndex (line 337) | private int toIndex(long hash) { class Result (line 342) | static class Result { method Result (line 351) | public Result(long hash, byte[] name, int nameLength, int max, int m... method isSameName (line 361) | public boolean isSameName(byte[] otherNameBytes, int otherNameLength) { method isSameNameBytes (line 365) | private boolean isSameNameBytes(byte[] otherNameBytes) { method round (line 383) | private static double round(double value) { method roundUpToPowerOfTwo (line 387) | private static int roundUpToPowerOfTwo(int number) { FILE: src/main/java/dev/morling/onebrc/CalculateAverage_JamalMulla.java class CalculateAverage_JamalMulla (line 31) | public class CalculateAverage_JamalMulla { method initUnsafe (line 51) | private static Unsafe initUnsafe() { class ResultRow (line 62) | private static final class ResultRow { method ResultRow (line 70) | private ResultRow(int v, final long keyStart, final byte keyLength) { method toString (line 79) | public String toString() { method round (line 83) | private double round(double value) { method getChunks (line 92) | static Chunk[] getChunks(int numThreads, FileChannel channel) throws I... method run (line 115) | private static void run(Chunk chunk) { method unsafeEquals (line 245) | static boolean unsafeEquals(final long a_address, final long b_address... method main (line 258) | public static void main(String[] args) throws IOException, Interrupted... FILE: src/main/java/dev/morling/onebrc/CalculateAverage_JesseVanRooy.java class CalculateAverage_JesseVanRooy (line 32) | public class CalculateAverage_JesseVanRooy { method initUnsafe (line 40) | private static Unsafe initUnsafe() { class Result (line 51) | public static class Result { method min (line 60) | double min() { method max (line 64) | double max() { method mean (line 68) | double mean() { class ThreadResult (line 73) | public static class ThreadResult { method process (line 81) | static void process(MemorySegment memorySegment, ThreadResult threadRe... method main (line 185) | public static void main(String[] args) throws IOException, Interrupted... FILE: src/main/java/dev/morling/onebrc/CalculateAverage_Judekeyser.java class CalculateAverage_Judekeyser (line 40) | public class CalculateAverage_Judekeyser { method main (line 49) | public static void main(String[] args) throws Exception { FILE: src/main/java/dev/morling/onebrc/CalculateAverage_JurenIvan.java class CalculateAverage_JurenIvan (line 34) | public class CalculateAverage_JurenIvan { method main (line 38) | public static void main(String[] args) throws IOException { method processSegment (line 50) | private static LinearProbingHashMap processSegment(long start, long en... method getSegments (line 98) | private static long[] getSegments(int segmentCount) throws IOException { class LinearProbingHashMap (line 129) | public static class LinearProbingHashMap { method LinearProbingHashMap (line 133) | public LinearProbingHashMap(int slots) { method put (line 138) | void put(int hash, byte[] key, int len, int temperature) { method keyIsEqual (line 159) | private boolean keyIsEqual(byte[] one, byte[] other, int len) { class Measurement (line 172) | static class Measurement { method Measurement (line 180) | public Measurement(byte[] city, int hash, int min, int max, int coun... method add (line 189) | public void add(int temperature) { method merge (line 196) | public Measurement merge(Measurement other) { method toString (line 204) | @Override method hashCode (line 209) | @Override method equals (line 214) | @Override FILE: src/main/java/dev/morling/onebrc/CalculateAverage_Kidlike.java class CalculateAverage_Kidlike (line 53) | public class CalculateAverage_Kidlike { method main (line 55) | public static void main(String[] args) { method calculateMeasurements (line 101) | private static Map calculateMeasurement... method bytesToInt (line 154) | static int bytesToInt(byte[] bytes) { type State (line 175) | private enum State { class MeasurementAggregator (line 183) | private static class MeasurementAggregator { method merge (line 191) | private MeasurementAggregator merge(MeasurementAggregator other) { method toString (line 200) | @Override class CheapByteBuffer (line 208) | private static class CheapByteBuffer { method CheapByteBuffer (line 213) | public CheapByteBuffer(final int startSize) { method append (line 218) | public void append(final byte b) { method clear (line 222) | public void clear() { method getBytes (line 226) | public byte[] getBytes() { FILE: src/main/java/dev/morling/onebrc/CalculateAverage_MahmoudFawzyKhalil.java class CalculateAverage_MahmoudFawzyKhalil (line 29) | public class CalculateAverage_MahmoudFawzyKhalil { method main (line 33) | public static void main(String[] args) throws Exception { method mapReduce (line 37) | private static void mapReduce() throws IOException { method getChunks (line 53) | private static List getChunks(MemorySegment ms, long chunkSize) { method readChunkToMap (line 71) | private static Map readChunkToMap(Chunk ... method combine (line 100) | private static Map combine(Map m... class MeasurementAggregate (line 129) | private static final class MeasurementAggregate { method MeasurementAggregate (line 135) | private MeasurementAggregate(double min, double max, double sum, lon... method of (line 142) | public static MeasurementAggregate of(String temperature) { method equals (line 147) | @Override method hashCode (line 160) | @Override method update (line 165) | public MeasurementAggregate update(String part) { method toString (line 174) | public String toString() { method round (line 178) | private double round(double value) { method combine (line 182) | public MeasurementAggregate combine(MeasurementAggregate m2) { FILE: src/main/java/dev/morling/onebrc/CalculateAverage_MeanderingProgrammer.java class CalculateAverage_MeanderingProgrammer (line 90) | public class CalculateAverage_MeanderingProgrammer { class ChunkReader (line 94) | private static class ChunkReader implements Iterator { method ChunkReader (line 102) | public ChunkReader(Path path) throws Exception { method estimateIterations (line 108) | public long estimateIterations() { method hasNext (line 112) | @Override method next (line 117) | @Override method nextChunkSize (line 136) | private long nextChunkSize() { class RowReader (line 144) | private static class RowReader implements Iterator { method RowReader (line 149) | public RowReader(ByteBuffer buffer) { method hasNext (line 154) | @Override method next (line 159) | @Override class Measurement (line 190) | private static class Measurement { method Measurement (line 197) | public Measurement(int value) { method merge (line 204) | public Measurement merge(Measurement other) { method toString (line 216) | @Override method main (line 226) | public static void main(String[] args) throws Exception { method run (line 230) | private static void run() throws Exception { method toMeasurements (line 242) | private static Map toMeasurements(ByteBuffer buff... FILE: src/main/java/dev/morling/onebrc/CalculateAverage_PanagiotisDrakatos.java class CalculateAverage_PanagiotisDrakatos (line 30) | public class CalculateAverage_PanagiotisDrakatos { method main (line 35) | public static void main(String[] args) throws IOException { method SeekableByteRead (line 41) | private static void SeekableByteRead(String path) throws IOException { method getFileSegments (line 60) | private static List getFileSegments(final File file, fina... method findSegment (line 82) | private static long findSegment(RandomAccessFile raf, long location, f... method SplitSeekableByteChannel (line 92) | private static ByteBuffer SplitSeekableByteChannel(FileSegment segment) { method concat (line 132) | public static ByteBuffer concat(ByteBuffer[] buffers) { method combineMaps (line 147) | private static TreeMap combineMaps(Stream get() { method arrayEquals (line 345) | private static boolean arrayEquals(final long[] a, final long[] b, fin... class MeasurementObject (line 353) | private static final class MeasurementObject { method MeasurementObject (line 362) | public MeasurementObject(int MAX, int MIN, long SUM, int REPEAT) { method MeasurementObject (line 369) | public MeasurementObject() { method MeasurementObject (line 376) | public MeasurementObject(int MAX, int MIN, long SUM) { method MeasurementObject (line 382) | public MeasurementObject(int MAX, int MIN) { method combine (line 387) | public static MeasurementObject combine(MeasurementObject m1, Measur... method updateWith (line 396) | public static MeasurementObject updateWith(MeasurementObject m1, Mea... method updateWith (line 405) | public MeasurementObject updateWith(int measurement) { method max (line 413) | private static int max(final int a, final int b) { method min (line 419) | private static int min(final int a, final int b) { method round (line 425) | private double round(double value) { method equals (line 429) | @Override method hashCode (line 439) | @Override method toString (line 444) | @Override FILE: src/main/java/dev/morling/onebrc/CalculateAverage_PawelAdamski.java class CalculateAverage_PawelAdamski (line 27) | public class CalculateAverage_PawelAdamski { method ResultRow (line 34) | public ResultRow(MeasurementAggregator ma) { method toString (line 38) | public String toString() { method round (line 42) | private double round(double value) { class Station (line 47) | private static class Station { method Station (line 51) | public Station(byte[] station) { method hashCode (line 56) | @Override method equals (line 61) | @Override class MeasurementAggregator (line 68) | private static class MeasurementAggregator { method MeasurementAggregator (line 74) | public MeasurementAggregator(long temp) { method MeasurementAggregator (line 81) | public MeasurementAggregator() { method merge (line 88) | public MeasurementAggregator merge(MeasurementAggregator measurement) { method main (line 98) | public static void main(String[] args) throws IOException { method prepareResults (line 107) | private static Map prepareResults(Map calculateTemperatur... method splitFileIntoParts (line 125) | private static ArrayList splitFileIntoParts(RandomAccessFile... method parse (line 143) | private static Map parse(FilePart file... method parseBytesIntoStationsMap (line 153) | private static HashMap parseBytesIntoS... method readBytesFromFile (line 172) | private static byte[] readBytesFromFile(FilePart filePart, RandomAcces... method parseDouble (line 179) | private static long parseDouble(byte[] text, int start, int end) { method findNextLine (line 200) | private static long findNextLine(RandomAccessFile raf, long currentPos... FILE: src/main/java/dev/morling/onebrc/CalculateAverage_SamuelYvon.java class CalculateAverage_SamuelYvon (line 57) | public class CalculateAverage_SamuelYvon { method branchlessMax (line 85) | private static int branchlessMax(final int a, final int b) { method branchlessMin (line 96) | private static int branchlessMin(final int a, final int b) { class StationName (line 105) | private static final class StationName { method StationName (line 110) | private StationName(int hash, MappedByteBuffer backing, int pos, int... method hashCode (line 116) | @Override method equals (line 121) | @SuppressWarnings("EqualsWhichDoesntCheckParameterClass") method toString (line 140) | @Override class StationMeasureAgg (line 146) | private static class StationMeasureAgg { method StationMeasureAgg (line 156) | public StationMeasureAgg(StationName name) { method hashCode (line 165) | @Override method city (line 175) | public String city() { method mergeWith (line 182) | public StationMeasureAgg mergeWith(StationMeasureAgg other) { method accumulate (line 192) | public void accumulate(int number) { method toString (line 200) | @Override method station (line 208) | public StationName station() { method parseChunk (line 213) | private static HashMap parseChunk(Mapp... method approximateChunks (line 274) | private static int approximateChunks() { method getFileChunks (line 280) | private static List getFileChunks() throws IOExcepti... method main (line 318) | public static void main(String[] args) throws IOException { FILE: src/main/java/dev/morling/onebrc/CalculateAverage_Smoofie.java class CalculateAverage_Smoofie (line 29) | public class CalculateAverage_Smoofie { class MeasurementAggregator (line 34) | private static class MeasurementAggregator { method toString (line 40) | @Override method round (line 45) | private double round(double value) { class CountResult (line 50) | private static final class CountResult { method CountResult (line 56) | private CountResult( method hash (line 71) | private static int hash(long cityNameAddress, short cityLength) { method getUnsafe (line 93) | private static Unsafe getUnsafe() { method locateSemicolon (line 104) | private static long locateSemicolon(long input) { method main (line 109) | public static void main(String[] args) throws IOException, Interrupted... FILE: src/main/java/dev/morling/onebrc/CalculateAverage_Ujjwalbharti.java class CalculateAverage_Ujjwalbharti (line 31) | public class CalculateAverage_Ujjwalbharti { method Measurement (line 37) | private Measurement(String[] parts) { method toString (line 43) | public String toString() { method round (line 47) | private double round(double value) { class MeasurementAggregator (line 54) | private static class MeasurementAggregator { class FileReaderCallable (line 61) | private static class FileReaderCallable implements Callable { method FileReaderCallable (line 66) | public FileReaderCallable(Path filePath, long startPos, long endPos) { method call (line 72) | @Override method calculateEndPosition (line 114) | private static long calculateEndPosition(Path path, long startPos, lon... method main (line 142) | public static void main(String[] args) throws IOException { FILE: src/main/java/dev/morling/onebrc/CalculateAverage_YannMoisan.java class CalculateAverage_YannMoisan (line 46) | public class CalculateAverage_YannMoisan { method main (line 51) | public static void main(String[] args) throws IOException { method calculateStats (line 57) | private static Map calculateStats(String file, method combine (line 76) | private static Map combine(Map xs, method parse (line 94) | private static Map parse(ByteBuffer bb) { method fileMemoryStream (line 133) | private static Stream fileMemoryStream(FileChannel fileCha... method fileMemoryIterator (line 144) | private static Iterator fileMemoryIterator(FileChannel fil... class Location (line 177) | private static final class Location { method Location (line 180) | public Location(byte[] value) { method equals (line 184) | @Override method hashCode (line 194) | @Override class Stat (line 200) | private static final class Stat { method combine (line 207) | public static Stat combine(Stat m1, method update (line 217) | private void update(int value) { method toString (line 224) | @Override method round (line 229) | private double round(double value) { class ManagedComputation (line 234) | private static final class ManagedComputation { method compute (line 235) | static T compute(final Supplier supplier) { class ManagedSupplier (line 248) | private static class ManagedSupplier implements ForkJoinPool.Mana... method ManagedSupplier (line 253) | private ManagedSupplier(final Supplier supplier) { method block (line 257) | @Override method isReleasable (line 264) | @Override method getResult (line 269) | T getResult() { FILE: src/main/java/dev/morling/onebrc/CalculateAverage_abeobk.java class CalculateAverage_abeobk (line 36) | public class CalculateAverage_abeobk { method initUnsafe (line 62) | private static Unsafe initUnsafe() { method main (line 76) | public static void main(String[] args) throws InterruptedException, IO... method getSemiCode (line 116) | static final long getSemiCode(final long w) { method getLFCode (line 122) | static final long getLFCode(final long w) { method getDotCode (line 128) | static final int getDotCode(final long w) { method getSemiPos (line 133) | static final int getSemiPos(final long spc) { method nextLF (line 138) | static final long nextLF(long addr) { method num (line 151) | static final long num(long w, int d) { method mix (line 161) | static final long mix(long hash) { method spawnWorker (line 167) | private static void spawnWorker() throws IOException { class Node (line 180) | final static class Node { method toString (line 189) | public final String toString() { method key (line 195) | final String key() { method Node (line 201) | Node(long a, long h, int kl, long v) { method Node (line 208) | Node(long a, long h, int kl) { method Node (line 216) | Node(long a, long w0, long h, int kl, long v) { method Node (line 224) | Node(long a, long w0, long h, int kl) { method add (line 233) | final void add(long val) { method merge (line 244) | final void merge(Node other) { method contentEquals (line 255) | final boolean contentEquals(long other_addr, long other_word0, long ... method contentEquals (line 267) | final boolean contentEquals(Node other) { class Worker (line 280) | static final class Worker extends Thread { method Worker (line 283) | Worker(int i) { method run (line 289) | @Override class ChunkParser (line 382) | static final class ChunkParser { method ChunkParser (line 387) | ChunkParser(Node[] m, long a, long e) { method ok (line 393) | final boolean ok() { method word (line 397) | final long word() { method skip (line 401) | final void skip(int n) { method skip (line 405) | final void skip(long n) { method val0 (line 409) | final long val0() { method val (line 415) | final long val() { method key (line 426) | final Node key(long word0, long semipos_code) { FILE: src/main/java/dev/morling/onebrc/CalculateAverage_abfrmblr.java class CalculateAverage_abfrmblr (line 25) | public class CalculateAverage_abfrmblr { method toString (line 30) | @Override method round (line 34) | private double round(double value) { method MeasurementTuple (line 40) | public MeasurementTuple (String[] values) { method main (line 45) | public static void main(String[] args) throws IOException { FILE: src/main/java/dev/morling/onebrc/CalculateAverage_adriacabeza.java class CalculateAverage_adriacabeza (line 38) | public class CalculateAverage_adriacabeza { class Result (line 49) | private static class Result { method addStation (line 50) | public void addStation(int hash, int value) { method getData (line 54) | public StationData getData(int hash) { class StationData (line 58) | private static class StationData { method StationData (line 61) | public StationData(int value) { method update (line 68) | public void update(int value) { method toString (line 75) | public String toString() { method Result (line 83) | public Result() { method getResultMap (line 87) | public Map getResultMap() { method merge (line 91) | public void merge(Result other) { method toString (line 101) | public String toString() { method findEndPosition (line 117) | private static long findEndPosition(FileChannel channel, long position... method getMappedByteBuffers (line 143) | private static List getMappedByteBuffers(int nProces... method readNumberFromBuffer (line 161) | private static int readNumberFromBuffer(ByteBuffer buffer, int limit) { method calculateAverageMeasurements (line 181) | private static Result calculateAverageMeasurements(List { method accept (line 63) | public void accept(byte b) { method equals (line 69) | @Override method hashCode (line 89) | @Override method toString (line 94) | @Override method reset (line 99) | void reset() { method compareTo (line 104) | @Override method readChunk (line 110) | private static HashMap readChunk(FileChannel from, long st... method main (line 164) | public static void main(String[] args) throws Exception { class Stats (line 214) | static class Stats { method Stats (line 220) | Stats() { method toString (line 223) | @Override method merge (line 230) | void merge(Stats that) { method unsafe (line 240) | private static Unsafe unsafe() { FILE: src/main/java/dev/morling/onebrc/CalculateAverage_albertoventurini.java class CalculateAverage_albertoventurini (line 39) | public class CalculateAverage_albertoventurini { class TrieNode (line 48) | private static final class TrieNode { method processChunk (line 60) | private static void processChunk(final TrieNode root, final ChunkReade... class ResultPrinter (line 112) | static class ResultPrinter { method printResults (line 119) | void printResults(final TrieNode[] roots) { method round (line 125) | private static double round(long value) { method printResultsRec (line 130) | private void printResultsRec(final TrieNode[] nodes, final byte[] by... class ChunkReader (line 182) | private static final class ChunkReader { method ChunkReader (line 207) | ChunkReader( method ensureHasMoreRows (line 223) | boolean ensureHasMoreRows() { method getNext (line 235) | byte getNext() { method readSubChunk (line 239) | private void readSubChunk() { method makeChunkReaders (line 258) | private static ChunkReader[] makeChunkReaders( method processWithChunkReaders (line 296) | private static void processWithChunkReaders() throws Exception { method main (line 325) | public static void main(String[] args) throws Exception { FILE: src/main/java/dev/morling/onebrc/CalculateAverage_alesj.java class CalculateAverage_alesj (line 26) | public class CalculateAverage_alesj { method main (line 27) | public static void main(String[] args) throws Exception { FILE: src/main/java/dev/morling/onebrc/CalculateAverage_algirdasrascius.java class CalculateAverage_algirdasrascius (line 32) | public class CalculateAverage_algirdasrascius { class AggregatorMap (line 42) | private static class AggregatorMap { method add (line 47) | void add(byte[] buffer, int nameStart, int nameEnd, int nameHash, sh... method combineWith (line 51) | void combineWith(AggregatorMap other) { method printResult (line 61) | void printResult() { method getEntry (line 74) | private AggregatorMapEntry getEntry(byte[] buffer, int nameStart, in... class AggregatorMapEntry (line 94) | private static class AggregatorMapEntry { method AggregatorMapEntry (line 104) | public AggregatorMapEntry(int nameStart, int nameEnd, int nameHash, ... method accumulate (line 111) | void accumulate(short value) { method combineWith (line 122) | void combineWith(AggregatorMapEntry other) { method result (line 133) | ResultRow result() { method toString (line 140) | public String toString() { method round (line 144) | private String round(short value) { class ReaderTask (line 155) | private static class ReaderTask implements Callable { method ReaderTask (line 162) | public ReaderTask(FileChannel channel, AtomicLong nextChunkPosition) { method call (line 167) | @Override method processChunk (line 174) | private boolean processChunk() throws IOException { method processLine (line 209) | private int processLine(int index) { method main (line 252) | public static void main(String[] args) throws Exception { FILE: src/main/java/dev/morling/onebrc/CalculateAverage_anandmattikopp.java class CalculateAverage_anandmattikopp (line 25) | public class CalculateAverage_anandmattikopp { method main (line 28) | public static void main(String[] args) throws IOException { method StationStatistics (line 48) | StationStatistics(Station station) { method merge (line 54) | public static StationStatistics merge(StationStatistics stats1, Statio... method toString (line 65) | @Override method round (line 70) | private double round(double value) { FILE: src/main/java/dev/morling/onebrc/CalculateAverage_anestoruk.java class CalculateAverage_anestoruk (line 41) | public class CalculateAverage_anestoruk { method main (line 46) | public static void main(String[] args) throws IOException { method calculateChunkSize (line 88) | private static long calculateChunkSize(long fileSize) { method process (line 100) | private static Record[] process(SegmentRange range, MemorySegment segm... method addRecord (line 133) | private static void addRecord(Record[] records, int hash, byte[] cityB... method mergeResult (line 148) | private static void mergeResult(TreeMap result, Record... class Record (line 167) | private static class Record { method Record (line 176) | public Record(int hash, byte[] city, int temperature) { method add (line 185) | public void add(int temperature) { method merge (line 192) | public void merge(Record other) { method toString (line 199) | @Override FILE: src/main/java/dev/morling/onebrc/CalculateAverage_anitasv.java class CalculateAverage_anitasv (line 30) | public class CalculateAverage_anitasv { method getByte (line 36) | byte getByte(long address) { method indexOf (line 40) | long indexOf(long position, byte ch) { method getRange (line 52) | MemorySegment getRange(long start, long end) { method parseDouble (line 56) | int parseDouble(long start, long end) { method computeHash (line 82) | public int computeHash(long position, long stationEnd) { method truncate (line 88) | public long truncate(long index) { method getLong (line 92) | public long getLong(long position) { class FastHashMap (line 100) | private static class FastHashMap { method FastHashMap (line 110) | private FastHashMap(int capacity) { method find (line 117) | IntSummaryStatistics find(int hash, Shard shard, long stationStart, ... method values (line 178) | Iterable> values() { method process (line 202) | private static Iterable> proce... method combineResults (line 227) | private static Map combineResults(List master(MemorySegment ... method start (line 261) | public static Map start() throws IOExcep... method toPrintMap (line 272) | private static Map toPrintMap(Map { method add (line 167) | private boolean add(int hash, Supplier create, Consumer sorted) { method split (line 199) | private static Chunk[] split(final FileChannel channel) throws IOExcep... method getUnsafe (line 230) | private static Unsafe getUnsafe() { class UnsafeMap (line 241) | private static class UnsafeMap { method UnsafeMap (line 247) | UnsafeMap(int numEntries) { method addEntry (line 255) | void addEntry(final int keyHash, final long keyAddress, final short ... method resize (line 291) | private void resize(final int keyHash, final long keyAddress, final ... method initEntry (line 320) | private static void initEntry(final long entry, final long keyAddres... method updateEntry (line 330) | private static void updateEntry(final long entry, final short measur... method keysEqual (line 342) | private static boolean keysEqual(long key1Address, long key2Address, f... FILE: src/main/java/dev/morling/onebrc/CalculateAverage_artpar.java class CalculateAverage_artpar (line 42) | public class CalculateAverage_artpar { method CalculateAverage_artpar (line 54) | public CalculateAverage_artpar() throws IOException { method calculateIntegerByteMapTest (line 147) | public static int[] calculateIntegerByteMapTest() { method hashInteger (line 184) | private static int hashInteger(int i) { method calculateIntegerByteMap (line 196) | public static int[] calculateIntegerByteMap() { method main (line 215) | public static void main(String[] args) throws IOException { method initUnsafe (line 219) | private static Unsafe initUnsafe() { method unsafeEquals (line 230) | static boolean unsafeEquals(long aStart, long aLength, long bStart, lo... method toString (line 243) | public String toString() { method round (line 247) | private double round(double value) { method printTo (line 251) | public void printTo(PrintStream out) { class MeasurementAggregator (line 256) | private static class MeasurementAggregator { method combine (line 262) | MeasurementAggregator combine(MeasurementAggregator other) { method combine (line 270) | void combine(int value) { method finish (line 278) | ResultRow finish() { class StationName (line 284) | static class StationName { method StationName (line 290) | public StationName(ByteBuffer nameBytes, int hash) { class ReaderRunnable (line 297) | private class ReaderRunnable { method ReaderRunnable (line 303) | private ReaderRunnable(long startPosition, int chunkSize, FileChanne... method run (line 310) | public Map run() throws IOException { class StationNameMap (line 351) | class StationNameMap { method getOrCreate (line 358) | public void getOrCreate(long stationNameBytesAddress, int length, in... FILE: src/main/java/dev/morling/onebrc/CalculateAverage_artsiomkorzun.java class CalculateAverage_artsiomkorzun (line 34) | public class CalculateAverage_artsiomkorzun { method main (line 58) | public static void main(String[] args) throws Exception { method isSpawn (line 74) | private static boolean isSpawn(String[] args) { method spawn (line 84) | private static void spawn() throws Exception { method execute (line 107) | private static void execute() throws Exception { method map (line 133) | private static MemorySegment map(Path file) { method word (line 143) | private static long word(long address) { method text (line 154) | private static String text(Map aggregates) { method round (line 174) | private static double round(double v) { class Aggregates (line 181) | private static class Aggregates { method Aggregates (line 189) | public Aggregates() { method find (line 195) | public long find(long word1, long word2, long hash) { method put (line 202) | public long put(long reference, long word, long length, long hash) { method update (line 217) | public static void update(long address, long value) { method merge (line 235) | public void merge(Aggregates rights) { method build (line 272) | public Map build() { method alloc (line 297) | private static void alloc(long reference, long length, long hash, lo... method offset (line 305) | private static long offset(long hash) { method next (line 309) | private static long next(long prev) { method equal (line 313) | private static boolean equal(long leftAddress, long leftWord, long r... method equal (line 330) | private static boolean equal(long leftAddress, long rightAddress, lo... class Aggregator (line 348) | private static class Aggregator extends Thread { method Aggregator (line 356) | public Aggregator(AtomicInteger counter, AtomicReference... method run (line 366) | @Override method next (line 465) | private static long next(long position) { method find (line 480) | private static long find(Aggregates aggregates, Chunk chunk, long wo... method value (line 527) | private static long value(Chunk chunk) { method separator (line 535) | private static long separator(long word) { method mask (line 540) | private static long mask(long word, long separator) { method length (line 545) | private static int length(long separator) { method mix (line 549) | private static long mix(long x) { method dot (line 557) | private static long dot(long num) { method value (line 561) | private static long value(long w, long dot) { class Chunk (line 570) | private static class Chunk { method Chunk (line 574) | public Chunk(long position, long limit) { method has (line 579) | boolean has() { FILE: src/main/java/dev/morling/onebrc/CalculateAverage_as-com.java class CalculateAverage_asun (line 44) | class CalculateAverage_asun { class Worker (line 103) | private static class Worker implements Runnable { method Worker (line 109) | private Worker(MemorySegment ms) { method run (line 113) | @Override method pollSegment (line 252) | private boolean pollSegment() { method main (line 278) | public static void main(String[] args) throws IOException, ExecutionEx... method merge (line 337) | private static Result merge(Result v, Result value) { method merge (line 341) | private static Result merge(Result v, long value, long value1, long va... method findSegment (line 349) | private static long findSegment(MemorySegment ms, long location, long ... class Result (line 361) | static class Result { method Result (line 365) | Result(long value) { method toString (line 370) | @Override method round (line 375) | double round(double v) { method round (line 379) | double round(long v) { class ByteArrayToResultMap (line 388) | static class ByteArrayToResultMap { method putOrMerge (line 393) | public void putOrMerge(byte[] key, int offset, int size, long temp, ... method getAll (line 417) | public List getAll() { FILE: src/main/java/dev/morling/onebrc/CalculateAverage_baseline.java class CalculateAverage_baseline (line 27) | public class CalculateAverage_baseline { method Measurement (line 32) | private Measurement(String[] parts) { method toString (line 39) | public String toString() { method round (line 43) | private double round(double value) { class MeasurementAggregator (line 48) | private static class MeasurementAggregator { method main (line 55) | public static void main(String[] args) throws IOException { FILE: src/main/java/dev/morling/onebrc/CalculateAverage_baseline_original_rounding.java class CalculateAverage_baseline_original_rounding (line 36) | public class CalculateAverage_baseline_original_rounding { method Measurement (line 41) | private Measurement(String[] parts) { method toString (line 47) | public String toString() { method round (line 51) | private double round(double value) { class MeasurementAggregator (line 56) | private static class MeasurementAggregator { method main (line 63) | public static void main(String[] args) throws IOException { FILE: src/main/java/dev/morling/onebrc/CalculateAverage_berry120.java class CalculateAverage_berry120 (line 34) | public class CalculateAverage_berry120 { class TemperatureSummary (line 41) | static class TemperatureSummary implements Comparable combineMaps(Map splitFileChannel(final FileChannel f... method parseBuffer (line 113) | private static Map parseBuffer(ByteBuffer bb) { FILE: src/main/java/dev/morling/onebrc/CalculateAverage_breejesh.java class CalculateAverage_breejesh (line 30) | public class CalculateAverage_breejesh { class Measurement (line 35) | private static final class Measurement { method Measurement (line 42) | public Measurement(int value) { method toString (line 49) | @Override method append (line 60) | private void append(int min, int max, int total, int count) { method append (line 69) | public void append(int value) { method merge (line 73) | public void merge(Measurement other) { method main (line 78) | public static void main(String[] args) throws Exception { method getStationFromBuffer (line 145) | private static String getStationFromBuffer(MappedByteBuffer currentBuf... method getValueFromBuffer (line 155) | private static int getValueFromBuffer(MappedByteBuffer currentBuffer) { FILE: src/main/java/dev/morling/onebrc/CalculateAverage_bufistov.java class ByteArrayWrapper (line 41) | class ByteArrayWrapper { method ByteArrayWrapper (line 44) | public ByteArrayWrapper(byte[] data) { method equals (line 48) | @Override method hashCode (line 53) | @Override class CalculateAverage_bufistov (line 59) | public class CalculateAverage_bufistov { class ResultRow (line 61) | static class ResultRow { method ResultRow (line 67) | ResultRow() { method ResultRow (line 70) | ResultRow(byte[] station, long value) { method ResultRow (line 79) | ResultRow(long value) { method setStation (line 86) | void setStation(long startPosition, long endPosition) { method toString (line 93) | public String toString() { method round (line 98) | private double round(double value) { method update (line 102) | void update(long newValue) { method merge (line 113) | ResultRow merge(ResultRow another) { class OpenHash (line 122) | static class OpenHash { method OpenHash (line 128) | public OpenHash(int capacityPow2) { method hashByteArray (line 135) | int hashByteArray(byte[] array) { method merge (line 144) | void merge(byte[] station, long value, int hashValue) { method merge (line 158) | void merge(byte[] station, long value) { method merge (line 162) | void merge(final long startPosition, long endPosition, int hashValue... method equalsToStation (line 176) | boolean equalsToStation(long startPosition, long endPosition, byte[]... method toJavaHashMap (line 187) | HashMap toJavaHashMap() { class FileRead (line 214) | public static class FileRead implements Callable lines) { method materializeNames (line 100) | public void materializeNames() { method getResult (line 104) | public Map getResult() { method allTasksCompleted (line 108) | public boolean allTasksCompleted() { class Partitioner (line 117) | static class Partitioner { method take (line 128) | @Override method offer (line 133) | @Override method Partitioner (line 150) | Partitioner(int partitionsSize) { method partitionsSize (line 155) | private int partitionsSize() { method processSlice (line 159) | void processSlice(byte[] slice) { method getLine (line 196) | private static byte[] getLine(byte[] slice, int lineLength, int star... method processPartitionedBatch (line 202) | private void processPartitionedBatch(byte[] slice, List getAllResults() { method allTasksCompleted (line 235) | public boolean allTasksCompleted() { class Station (line 243) | public static class Station implements Comparable { method Station (line 253) | public Station(byte[] inputSlice, int startIdx, int len) { method Station (line 260) | public Station(Station from) { method hashcodeFast (line 268) | private int hashcodeFast() { method equals (line 287) | @Override method hashCode (line 303) | @Override method compareTo (line 308) | @Override method materializeName (line 313) | public String materializeName() { method toString (line 323) | @Override method toString (line 334) | public String toString() { method fakeDouble (line 338) | private String fakeDouble(long value) { method round (line 347) | private double round(double value) { class MeasurementAggregator (line 353) | public static class MeasurementAggregator { method withMeasurement (line 359) | MeasurementAggregator withMeasurement(Measurement m) { method toString (line 369) | @Override method parseToLongIgnoringDecimalPoint (line 376) | private static long parseToLongIgnoringDecimalPoint(byte[] slice, int ... method multipleByTen (line 398) | private static long multipleByTen(long value) { method digitAsLong (line 402) | private static long digitAsLong(byte[] digits, int position) { method main (line 406) | public static void main(String[] args) throws IOException { method parseStreamWithBytes (line 421) | static void parseStreamWithBytes(InputStream inputStream, int bufferLe... method getUtf8CharNumberOfBytes (line 483) | static int getUtf8CharNumberOfBytes(byte firstByteOfChar) { method showResults (line 499) | static void showResults(Partitioner partitioner) { method getMeasurement (line 531) | private static Measurement getMeasurement(byte[] slice, LineParams lin... method lastIndexOfSeparator (line 538) | private static int lastIndexOfSeparator(byte[] slice, LineParams lineP... FILE: src/main/java/dev/morling/onebrc/CalculateAverage_cb0s.java class CalculateAverage_cb0s (line 27) | public class CalculateAverage_cb0s { method main (line 32) | public static void main(String[] args) throws IOException, Interrupted... method benchmark (line 37) | private static void benchmark() throws IOException { method run (line 47) | private static void run() throws IOException { class MeasurementAggregator (line 75) | private static class MeasurementAggregator { method MeasurementAggregator (line 76) | public MeasurementAggregator(int initialValue) { method equals (line 93) | @Override method compareTo (line 101) | @Override method toString (line 106) | @Override method hashCode (line 111) | @Override method equals (line 122) | @Override method hashCode (line 136) | @Override method toString (line 141) | @Override method compareTo (line 146) | @Override class TempResultStorage (line 159) | private static class TempResultStorage { method insertMeasurement (line 160) | public void insertMeasurement(byte[] dataRow, int from, int to) { method TempResultStorage (line 195) | public TempResultStorage() { method merge (line 201) | public static TempResultStorage merge(TempResultStorage storage0, Te... method parseMeasurement (line 253) | private int parseMeasurement(byte[] dataRow, int from, int to) { method processChunk (line 274) | private static TempResultStorage processChunk(int i, long chunkSize) { method getFileSize (line 335) | private static long getFileSize() { FILE: src/main/java/dev/morling/onebrc/CalculateAverage_charlibot.java class CalculateAverage_charlibot (line 30) | public class CalculateAverage_charlibot { method initUnsafe (line 36) | private static Unsafe initUnsafe() { method main (line 49) | public static void main(String[] args) throws Exception { method max (line 55) | static int max(final int a, final int b) { method min (line 62) | static int min(final int a, final int b) { class Measurement (line 68) | static class Measurement { method Measurement (line 74) | Measurement(int value) { method toString (line 81) | @Override method round (line 89) | private double round(double value) { class MeasurementMap3 (line 94) | static class MeasurementMap3 { method MeasurementMap3 (line 101) | MeasurementMap3() { method insert (line 106) | public void insert(long fromAddress, long toAddress, int hashcode, i... method tryInsert (line 111) | private void tryInsert(int mapIndex, long fromAddress, long toAddres... method toMap (line 153) | public HashMap toMap() { method entrySet (line 167) | public Set> entrySet() { method getChunks (line 172) | public static long[] getChunks(int numChunks) throws Exception { method memoryMap (line 192) | public static void memoryMap() throws Exception { FILE: src/main/java/dev/morling/onebrc/CalculateAverage_chrisbellew.java class CalculateAverage_chrisbellew (line 68) | public final class CalculateAverage_chrisbellew { method main (line 85) | public static void main(String[] args) throws IOException { method printResults (line 124) | private static void printResults(TreeMap results) { method getThreadRanges (line 151) | public static final FileRange[] getThreadRanges(int threads) throws IO... method getFileSize (line 162) | private static final long getFileSize() { class ThreadProcessor (line 175) | static final class ThreadProcessor implements Runnable { method ThreadProcessor (line 255) | public ThreadProcessor(long start, long end, int bufferSize) { method run (line 273) | public final void run() { method processRange (line 299) | private final void processRange(MappedByteBuffer buffer, boolean las... method processBuffer (line 327) | private final void processBuffer(byte[] buffer, int numBytes, boolea... method findFirstNewline (line 404) | private final int findFirstNewline(byte[] buffer) { method slice (line 428) | private final void slice(byte[] buffer, int newlineIndex, int nameSt... method record (line 466) | private final void record(byte[] buffer, int nameStart, int nameEnd,... method nameToSlotIndex (line 562) | private final int nameToSlotIndex(byte[] buffer, int nameStart, int ... method updateSlot (line 605) | private final void updateSlot(int slotIndex, int measurement) { method slotEquals (line 626) | private final boolean slotEquals(byte[] buffer, int nameStart, int v... method getNumbersIndex (line 658) | private final long getNumbersIndex(int slotIndex) { method collectResults (line 662) | public void collectResults(TreeMap results) { method generateMasks (line 690) | private static final VectorMask[] generateMasks(VectorSpecies<... method getUnsafe (line 702) | private static final Unsafe getUnsafe() { class CityResult (line 715) | static final class CityResult { method CityResult (line 721) | public CityResult(int min, int max, int sum, int count) { class FileRange (line 729) | static final class FileRange { method FileRange (line 733) | public FileRange(long start, long end) { FILE: src/main/java/dev/morling/onebrc/CalculateAverage_cliffclick.java class CalculateAverage_cliffclick (line 26) | abstract class CalculateAverage_cliffclick { method main (line 54) | public static void main(String[] args) throws Exception { method work (line 78) | static Work work(String[] args) throws Exception { method tstart (line 109) | static void tstart(Work w, File f, long start, long len) { method has0 (line 135) | static long has0(long x) { method do_chunk (line 141) | static void do_chunk(Work w, boolean skip1, int limit, MappedByteBuffe... method skipLast (line 198) | private static int skipLast(int limit, Work w, long base) { method parseData (line 219) | private static int parseData(int idx, Work w, int cityx, long n8, long... method skipFirst (line 248) | private static int skipFirst(int idx, long base) { class Work (line 256) | private static class Work { method insert (line 270) | void insert(long n8, int temp, long base, int cityx) { method uhash_final (line 309) | static long uhash_final(long n8) { method new_city (line 314) | void new_city(int ihash, long base_cityx) { method hash_hash (line 323) | private static int hash_hash(int uhash) { method reprobe (line 332) | private static int reprobe(int ihash, int uhash) { method ihash (line 337) | int ihash(int uhash) { method reduce (line 353) | void reduce(Work w) { method key (line 391) | static int key(long cnt_key) { method cnt (line 395) | static int cnt(long cnt_key) { method min (line 399) | static int min(long min_max) { method max (line 403) | static int max(long min_max) { method temp (line 407) | static int temp(long min_max) { method cnt_key (line 411) | static long cnt_key(int cnt, int key) { method min_max (line 415) | static long min_max(int min, int max, int sum) { method toString (line 419) | @Override method toHex (line 452) | static String toHex(byte[] bs) { method toChar (line 460) | static String toChar(long x) { FILE: src/main/java/dev/morling/onebrc/CalculateAverage_coolmineman.java class CalculateAverage_coolmineman (line 29) | public class CalculateAverage_coolmineman { class MeasurementAggregator (line 33) | private static class MeasurementAggregator { method add (line 39) | void add(double value) { method merge (line 46) | void merge(MeasurementAggregator o) { method toString (line 53) | public String toString() { method round (line 57) | private double round(double value) { class BytesKey (line 62) | static class BytesKey implements Comparable { method BytesKey (line 66) | BytesKey(byte[] value) { method toString (line 70) | @Override method hashCode (line 75) | @Override method equals (line 80) | @Override method compareTo (line 88) | @Override method parse (line 95) | static void parse(ByteBuffer a, int as, ByteBuffer b, int bs, boolean ... method ofRange (line 165) | static byte[] ofRange(ByteBuffer a, int as, ByteBuffer b, int bs, int ... method parseDouble (line 181) | static double parseDouble(byte[] b, int start, int end) { method main (line 199) | public static void main(String[] args) throws Exception { method merge (line 270) | static void merge(HashMap a, HashMap<... FILE: src/main/java/dev/morling/onebrc/CalculateAverage_couragelee.java class CalculateAverage_couragelee (line 25) | public class CalculateAverage_couragelee { class Temperature (line 26) | private static class Temperature { method Temperature (line 35) | public Temperature(String tempStr) { method Temperature (line 43) | public Temperature(int cnt, double sum, double min, double max) { method addRecord (line 50) | public Temperature addRecord(String tempStr) { method merge (line 60) | public Temperature merge(Temperature newValue) { method update (line 69) | public void update(String tempStr) { method toString (line 77) | @Override method main (line 101) | public static void main(String[] args) throws IOException, Interrupted... method calculate (line 114) | private static void calculate() throws IOException, InterruptedExcepti... class Task (line 178) | private static class Task implements Callable> { method Task (line 182) | public Task(long startPos, long size) throws IOException { method call (line 187) | @Override method handleRecord (line 257) | private static void handleRecord(Map map, String[... method handleRecordConcurrently (line 279) | private static void handleRecordConcurrently(String record) { method convertToString1 (line 306) | private static String[] convertToString1(byte[] bytes, int start, int ... method preHeatDoubleCache (line 316) | private static void preHeatDoubleCache() { method parseDouble (line 333) | private static double parseDouble(String tempStr) { FILE: src/main/java/dev/morling/onebrc/CalculateAverage_criccomini.java class CalculateAverage_criccomini (line 27) | public class CalculateAverage_criccomini { class MeasurementAggregator (line 33) | private static class MeasurementAggregator { method toString (line 39) | public String toString() { method round (line 43) | private double round(double value) { method processSegment (line 48) | private static Map processSegment(Mappe... method main (line 79) | public static void main(String[] args) throws IOException, Interrupted... FILE: src/main/java/dev/morling/onebrc/CalculateAverage_davecom.java class CalculateAverage_davecom (line 34) | public class CalculateAverage_davecom { method processChunk (line 51) | public static void processChunk(MappedByteBuffer chunk, long chunkSize) { method outputResults (line 118) | public static void outputResults() { method main (line 154) | public static void main(String[] args) throws IOException { FILE: src/main/java/dev/morling/onebrc/CalculateAverage_davery22.java class CalculateAverage_davery22 (line 28) | public class CalculateAverage_davery22 { method main (line 33) | public static void main(String[] args) throws IOException, Interrupted... class Worker (line 139) | static class Worker implements Runnable { method Worker (line 145) | Worker(MappedByteBuffer buf) { method run (line 149) | @Override method hash (line 202) | static int hash(long word) { method mergeItem (line 206) | void mergeItem(long[] item, int len) { // format [n longs for key, 1... method mergeEntry (line 240) | void mergeEntry(long[] item) { // format: [n longs for key, 4 longs ... method indexOfSemicolon (line 274) | static int indexOfSemicolon(long word) { method statToBytes (line 280) | static int statToBytes(long stat, byte[] buf, int pos) { method mean (line 297) | static long mean(long sum, long count) { FILE: src/main/java/dev/morling/onebrc/CalculateAverage_ddimtirov.java class CalculateAverage_ddimtirov (line 33) | public class CalculateAverage_ddimtirov { method main (line 46) | @SuppressWarnings("RedundantSuppression") method toString (line 89) | @Override method forFile (line 94) | public static List forFile(Path file, int desiredSegments... method findNewLineAfter (line 112) | private static long findNewLineAfter(RandomAccessFile raf, long locati... class Accumulator (line 123) | static class Accumulator { method Accumulator (line 128) | public Accumulator(String name) { method accumulate (line 132) | public void accumulate(int min, int max, int count, long sum) { method toString (line 141) | @Override method summarizeTrackers (line 148) | private static String summarizeTrackers(Tracker[] trackers) { class Tracker (line 172) | static class Tracker { method processSegment (line 184) | private void processSegment(MemorySegment memory) { method processLine (line 242) | public void processLine(int nameHash, byte[] nameBytesBuffer, int na... FILE: src/main/java/dev/morling/onebrc/CalculateAverage_deemkeen.java class CalculateAverage_deemkeen (line 29) | public class CalculateAverage_deemkeen { method main (line 32) | public static void main(String[] args) throws IOException, ExecutionEx... method merge (line 149) | private static Result merge(Result v, Result value) { method merge (line 153) | private static Result merge(Result v, double value, double value1, dou... class Result (line 173) | static class Result { method Result (line 179) | Result(double value) { method toString (line 186) | @Override method round (line 193) | double round(double v) { class ByteArrayToResultMap (line 199) | static class ByteArrayToResultMap { method putOrMerge (line 204) | public void putOrMerge(byte[] key, int offset, int size, double temp... method hashCode (line 227) | private int hashCode(byte[] a, int fromIndex, int length) { method getPair (line 236) | private Pair getPair(byte[] key, int offset, int size) { method get (line 248) | public Result get(byte[] key, int offset, int size) { method getAll (line 253) | public List getAll() { FILE: src/main/java/dev/morling/onebrc/CalculateAverage_dkarampi.java class CalculateAverage_dkarampi (line 32) | public class CalculateAverage_dkarampi { method main (line 39) | public static void main(String[] args) throws Exception { method round (line 43) | private static double round(double value) { method areEqual (line 47) | private static boolean areEqual(byte[] a, int aLen, byte[] b, int bLen) { method nextPowerOfTwo (line 59) | public static int nextPowerOfTwo(int n) { method runFast (line 66) | private void runFast() throws Exception { method createStationHashTables (line 101) | private void createStationHashTables() { method createBuffers (line 111) | private List createBuffers(FileChannel channel) throws Excepti... method sortAndPrint (line 126) | private void sortAndPrint() { class Station (line 170) | private static class Station { method run (line 181) | @Override method process (line 188) | private void process(Buffer buffer) { method updateStations (line 242) | private void updateStations(int hash, byte[] name, short nameLen, doub... FILE: src/main/java/dev/morling/onebrc/CalculateAverage_dpsoft.java class CalculateAverage_dpsoft (line 30) | public class CalculateAverage_dpsoft { method main (line 35) | public static void main(String[] args) throws IOException { method sortSequentially (line 58) | private static Map sortSequentially(MeasurementMa... method getMemorySegments (line 69) | private static List getMemorySegments(int numberOfSegment... method findSegment (line 98) | private static long findSegment(int i, int skipSegment, RandomAccessFi... class MeasurementExtractor (line 113) | static final class MeasurementExtractor implements Runnable { method MeasurementExtractor (line 118) | MeasurementExtractor(FileSegment memorySegment, Phaser phaser) { method run (line 124) | @Override method hashAndRewind (line 153) | private static int hashAndRewind(MappedByteBuffer mbb) { method readTemperatureFromBuffer (line 174) | private static int readTemperatureFromBuffer(MappedByteBuffer mbb) { method getMeasurements (line 201) | public MeasurementMap getMeasurements() { method skipToFirstLine (line 206) | private static void skipToFirstLine(MappedByteBuffer mbb) { class MeasurementMap (line 214) | static class MeasurementMap { method getOrCompute (line 217) | public Measurement getOrCompute(int hash, MappedByteBuffer mbb, int ... method compute (line 228) | private Measurement compute(int hash, MappedByteBuffer mbb, int posi... method merge (line 252) | public MeasurementMap merge(MeasurementMap otherMap) { class Measurement (line 276) | static final class Measurement { method Measurement (line 285) | public Measurement(byte[] name, int nameHash) { method equalsTo (line 290) | public static boolean equalsTo(byte[] name, MappedByteBuffer mbb, in... method sample (line 301) | public void sample(int temp) { method merge (line 308) | public Measurement merge(Measurement m2) { method toString (line 316) | public String toString() { method round (line 320) | private static double round(double value) { FILE: src/main/java/dev/morling/onebrc/CalculateAverage_dqhieuu.java class CalculateAverage_dqhieuu (line 27) | public class CalculateAverage_dqhieuu { method round (line 30) | private static double round(double value) { class MeasurementAggregator (line 34) | private static class MeasurementAggregator { method toString (line 41) | @Override method main (line 47) | public static void main(String[] args) throws IOException { FILE: src/main/java/dev/morling/onebrc/CalculateAverage_ebarlas.java class CalculateAverage_ebarlas (line 31) | public class CalculateAverage_ebarlas { method makeUnsafe (line 42) | private static Unsafe makeUnsafe() { method main (line 53) | public static void main(String[] args) throws IOException, Interrupted... method printResults (line 87) | private static void printResults(Stats[] stats) { // adheres to Gunnar... method convert (line 98) | private static byte[] convert(long keyAddr, int keyLen, int keyLastByt... method format (line 116) | private static String format(Stats st) { // adheres to expected output... method round (line 120) | private static double round(double value) { // Gunnar's round function method foldStats (line 124) | private static Stats[] foldStats(List partitions) { // fold... method foldFootersAndHeaders (line 141) | private static void foldFootersAndHeaders(List partitions) ... method mergeFooterAndHeader (line 157) | private static byte[] mergeFooterAndHeader(byte[] footer, byte[] heade... method processSegment (line 170) | private static Partition processSegment(MemorySegment ms, boolean firs... method doProcessSegment (line 178) | private static long doProcessSegment(MemorySegment ms, long offset, St... method equals (line 354) | private static boolean equals(long key1, int len1, long key2, int len2) { method findInTable (line 373) | private static Stats findInTable(Stats[] stats, int hash, long keyAddr... method newStats (line 386) | private static Stats newStats(long keyAddr, int keyLen, int keyLastByt... method readFooter (line 393) | private static byte[] readFooter(MemorySegment ms, long offset) { // r... method readHeader (line 401) | private static ByteArrayOffset readHeader(MemorySegment ms) { // read ... class Partition (line 415) | private static class Partition { method Partition (line 420) | Partition(byte[] header, byte[] footer, Stats[] stats) { class Stats (line 427) | private static class Stats { // min, max, and sum values are modeled w... method Stats (line 437) | Stats(long keyAddr, int keyLen, int lastBytes, int hash) { FILE: src/main/java/dev/morling/onebrc/CalculateAverage_entangled90.java class CalculateAverage_entangled90 (line 33) | public class CalculateAverage_entangled90 { method main (line 39) | public static void main(String[] args) throws IOException { class AggregatedProcessor (line 53) | class AggregatedProcessor { method addMeasure (line 59) | public void addMeasure(double value) { method combine (line 66) | public void combine(AggregatedProcessor processor) { method mean (line 73) | public double mean() { method round (line 77) | private static double round(double d) { method toString (line 81) | @Override class ProcessorMap (line 87) | class ProcessorMap { method printResults (line 90) | public void printResults() { method addMeasure (line 99) | public void addMeasure(BytesWrapper city, double value) { method combine (line 108) | private void combine(BytesWrapper city, AggregatedProcessor processor) { method combineAll (line 118) | public static ProcessorMap combineAll(ProcessorMap... processors) { class PooledChunkProcessor (line 129) | class PooledChunkProcessor implements Consumer { method PooledChunkProcessor (line 136) | public PooledChunkProcessor(int n) { method accept (line 167) | @Override method result (line 177) | public ProcessorMap result() { class ChunkProcessor (line 189) | class ChunkProcessor implements Consumer { method processChunk (line 192) | public void processChunk(ByteBuffer bb) { method accept (line 197) | @Override method processRow (line 204) | public boolean processRow(ByteBuffer bb) { method wrapperFromBB (line 219) | private static BytesWrapper wrapperFromBB(ByteBuffer bb, int length) { method findSemiColon (line 226) | private int findSemiColon(ByteBuffer bb) { method parseDoubleNewLine (line 235) | private static double parseDoubleNewLine(ByteBuffer bb) { class Scanner (line 255) | class Scanner { method scan (line 258) | public void scan(String fileName, Consumer consumer, long ... method findLastNewLine (line 287) | public int findLastNewLine(ByteBuffer bb) { class BytesWrapper (line 297) | class BytesWrapper implements Comparable { method BytesWrapper (line 300) | public BytesWrapper(byte[] bytes) { method equals (line 304) | @Override method hashCode (line 314) | @Override method toString (line 319) | @Override method compareTo (line 324) | @Override FILE: src/main/java/dev/morling/onebrc/CalculateAverage_eriklumme.java class CalculateAverage_eriklumme (line 35) | public class CalculateAverage_eriklumme { method CalculateAverage_eriklumme (line 49) | private CalculateAverage_eriklumme() throws Exception { class StationMeasurement (line 101) | private static class StationMeasurement { method StationMeasurement (line 104) | private StationMeasurement(ByteArrayWrapper stationName) { method stringName (line 113) | public String stringName() { type Mode (line 118) | private enum Mode { method equals (line 126) | @Override method hashCode (line 136) | @Override class DataProcessor (line 142) | public class DataProcessor implements Callable ... method main (line 256) | public static void main(String[] args) throws Exception { FILE: src/main/java/dev/morling/onebrc/CalculateAverage_faridtmammadov.java class CalculateAverage_faridtmammadov (line 34) | public class CalculateAverage_faridtmammadov { method main (line 37) | public static void main(String[] args) throws IOException { method getSegments (line 48) | private static List getSegments(int numberOfChunks) thr... method aggregate (line 84) | private static Map aggregate(MemorySegment segment) { method parseCity (line 105) | private static String parseCity(MemorySegmentIterator iterator) { method parseTemperature (line 118) | public static long parseTemperature(MemorySegmentIterator iterator) { method printFormatted (line 137) | private static void printFormatted(Map map) { class Aggregate (line 149) | static class Aggregate { method Aggregate (line 155) | public Aggregate(long temperature) { method update (line 162) | public Aggregate update(long temp) { method update (line 170) | public Aggregate update(Aggregate agg) { method toString (line 178) | public String toString() { class MemorySegmentIterator (line 183) | static class MemorySegmentIterator { method MemorySegmentIterator (line 188) | public MemorySegmentIterator(MemorySegment segment) { method hasNext (line 193) | public boolean hasNext() { method getNextByte (line 197) | public byte getNextByte() { FILE: src/main/java/dev/morling/onebrc/CalculateAverage_fatroom.java class CalculateAverage_fatroom (line 25) | public class CalculateAverage_fatroom { class MeasurementAggregator (line 29) | private static class MeasurementAggregator { method MeasurementAggregator (line 35) | public MeasurementAggregator() { method consume (line 42) | public void consume(double value) { method combineWith (line 49) | public MeasurementAggregator combineWith(MeasurementAggregator that) { method toString (line 57) | @Override method main (line 65) | public static void main(String[] args) throws IOException, Interrupted... method processBuffer (line 102) | private static StationMap processBuffer(MappedByteBuffer source, int l... method parseMeasurement (line 135) | static double parseMeasurement(byte[] source, int size) { class Station (line 145) | static class Station { method Station (line 151) | public Station(int hash, byte[] bytes, int length, Station next) { method getKey (line 159) | public String getKey() { class StationMap (line 164) | static class StationMap { method get (line 167) | MeasurementAggregator get(int hash, byte[] buffer, int length) { method entrySet (line 180) | private List entrySet() { FILE: src/main/java/dev/morling/onebrc/CalculateAverage_felix19350.java class CalculateAverage_felix19350 (line 34) | public class CalculateAverage_felix19350 { class CityRef (line 40) | private static class CityRef { method CityRef (line 46) | public CityRef(ByteBuffer byteBuffer, int startIdx, int length, int ... method cityName (line 53) | public String cityName() { method hashCode (line 57) | @Override method equals (line 62) | @Override class ResultRow (line 87) | private static class ResultRow { method ResultRow (line 94) | public ResultRow(int initialValue) { method mergeValue (line 101) | public void mergeValue(int value) { method toString (line 108) | public String toString() { method round (line 112) | private double round(double value) { method mergeResult (line 116) | public void mergeResult(ResultRow value) { method createStreamOf (line 128) | public static Stream createStreamOf(List processChunk() { method processLine (line 143) | private int processLine(Map measurements, ByteBuff... method main (line 206) | public static void main(String[] args) throws IOException { method calculateMemorySegments (line 246) | private static List calculateMemorySegments(int numChunks)... FILE: src/main/java/dev/morling/onebrc/CalculateAverage_filiphr.java class CalculateAverage_filiphr (line 59) | public class CalculateAverage_filiphr { class Measurement (line 64) | private static final class Measurement { method add (line 71) | private void add(long value) { method combine (line 78) | public static Measurement combine(Measurement m1, Measurement m2) { method toString (line 87) | @Override method round (line 92) | private double round(double value) { method main (line 97) | public static void main(String[] args) throws IOException { method mergeMaps (line 119) | private static Map mergeMaps(Map m... method parseBuffer (line 155) | private static Map parseBuffer(ByteBuffer bb) { method fineChannelStream (line 224) | private static Stream fineChannelStream(FileChannel fileCh... method fileChannelIterator (line 228) | private static Iterator fileChannelIterator(FileChannel fi... class StoredKey (line 269) | private static final class StoredKey implements Key { method StoredKey (line 274) | private StoredKey(byte[] keyBytes, int hash) { method equals (line 279) | @Override method hashCode (line 296) | @Override class SearchKey (line 306) | private static final class SearchKey implements Key { method SearchKey (line 312) | private SearchKey(byte[] buffer, int hash, int limit) { method equals (line 318) | @Override method hashCode (line 336) | @Override type Key (line 342) | private interface Key { FILE: src/main/java/dev/morling/onebrc/CalculateAverage_flippingbits.java class CalculateAverage_flippingbits (line 38) | public class CalculateAverage_flippingbits { method initUnsafe (line 54) | private static Unsafe initUnsafe() { method main (line 65) | public static void main(String[] args) throws IOException { method getSegments (line 86) | private static long[][] getSegments() throws IOException { method processSegment (line 125) | private static FasterHashMap processSegment(long startOfSegment, long ... class Station (line 173) | private static class Station { method Station (line 184) | public Station(int nameHash, int nameLength, long nameAddress, short... method getName (line 191) | public String getName() { method addMeasurementAndComputeAggregate (line 197) | public void addMeasurementAndComputeAggregate(short measurement) { method aggregateRemainingMeasurements (line 217) | public void aggregateRemainingMeasurements() { method mergeWith (line 226) | public void mergeWith(Station otherStation) { method nameEquals (line 233) | public boolean nameEquals(long otherNameAddress) { method toString (line 249) | public String toString() { class FasterHashMap (line 266) | private static class FasterHashMap { method getOffsetIdx (line 273) | private int getOffsetIdx(int nameHash, int nameLength, long nameAddr... method addEntry (line 286) | public void addEntry(int nameHash, int nameLength, long nameAddress,... method mergeWith (line 300) | public FasterHashMap mergeWith(FasterHashMap otherMap) { method getEntries (line 317) | public List getEntries() { FILE: src/main/java/dev/morling/onebrc/CalculateAverage_fragmede.java class CalculateAverage_fragmede (line 27) | public class CalculateAverage_fragmede { method of (line 33) | public static Measurement of(String[] parts) { method toString (line 65) | public String toString() { method round (line 69) | private double round(double value) { class MeasurementAggregator (line 74) | private static class MeasurementAggregator { method main (line 81) | public static void main(String[] args) throws IOException { FILE: src/main/java/dev/morling/onebrc/CalculateAverage_gabrielfoo.java class CalculateAverage_gabrielfoo (line 29) | public class CalculateAverage_gabrielfoo { class ResultRow (line 35) | private static class ResultRow { method toString (line 41) | public String toString() { method updateMinMax (line 45) | public void updateMinMax(double incoming) { method combine (line 52) | public void combine(ResultRow other) { method mapFileToMemory (line 60) | public static MappedByteBuffer[] mapFileToMemory(final RandomAccessFil... method main (line 85) | public static void main(String[] args) throws Exception { FILE: src/main/java/dev/morling/onebrc/CalculateAverage_gabrielreid.java class CalculateAverage_gabrielreid (line 38) | public class CalculateAverage_gabrielreid { method main (line 57) | public static void main(String[] args) throws IOException { method parseNumFromLine (line 141) | static short parseNumFromLine(byte[] buf, int offset, int len) { class CitySummary (line 152) | static class CitySummary { method CitySummary (line 158) | public CitySummary(int value) { method add (line 165) | void add(int value) { method add (line 172) | CitySummary add(CitySummary other) { class ByteSlice (line 187) | static final class ByteSlice { method ByteSlice (line 193) | public ByteSlice(byte[] buf, int offset, int len) { method valueAsString (line 199) | public String valueAsString() { method hashCode (line 203) | public int hashCode() { method hashCode (line 207) | public static int hashCode(byte[] buf, int offset, int len) { method equals (line 223) | @Override method equal (line 231) | public static boolean equal(ByteSlice a, ByteSlice b) { method equal (line 235) | public static boolean equal(ByteSlice a, byte[] buf, int offset, int... class SummaryTable (line 245) | static final class SummaryTable { method SummaryTable (line 257) | SummaryTable(int size) { method reset (line 263) | void reset() { method addAll (line 270) | public void addAll(SummaryTable other) { method putValueNode (line 279) | private void putValueNode(ValueNode valueNode) { method putTemperatureValue (line 294) | public void putTemperatureValue(byte[] buf, int offset, int len, int... method resizeIfNecessary (line 316) | private void resizeIfNecessary() { method toMap (line 336) | public Map toMap() { class BlockBuilder (line 351) | static class BlockBuilder { method BlockBuilder (line 358) | public BlockBuilder(int readBufferSize) { method reset (line 363) | void reset() { method buildSummaryTable (line 370) | public Map buildSummaryTable(int readByteCount,... method parseLineSegments (line 375) | private void parseLineSegments(int byteCount, boolean skipToNewline) { FILE: src/main/java/dev/morling/onebrc/CalculateAverage_gamlerhart.java class CalculateAverage_gamlerhart (line 55) | public class CalculateAverage_gamlerhart { method main (line 65) | public static void main(String[] args) throws Exception { method parseSection (line 88) | private static PrivateHashMap parseSection(long start, long end, long ... method splitFileIntoSections (line 137) | private static ArrayList
splitFileIntoSections(long fileSize,... class PrivateHashMap (line 151) | private static class PrivateHashMap { class Value (line 165) | private class Value { method Value (line 166) | public Value(double min, double max, double sum, long count) { method PrivateHashMap (line 182) | public PrivateHashMap() { method add (line 186) | public void add(MemorySegment file, long pos, int len, double val) { method calculateHash (line 191) | private static int calculateHash(MemorySegment file, long pos, int l... method doAdd (line 206) | private void doAdd(MemorySegment file, int hash, long pos, int len, ... method isSameEntry (line 241) | private boolean isSameEntry(MemorySegment file, long slotEntry, long... method isSame (line 248) | private static boolean isSame(MemorySegment file, long i1, long i2, ... method fillMerge (line 278) | public void fillMerge(MemorySegment file, TreeMap... method toString (line 335) | public String toString() { method round (line 339) | private double round(double value) { FILE: src/main/java/dev/morling/onebrc/CalculateAverage_gauravdeshmukh.java class CalculateAverage_gauravdeshmukh (line 34) | public class CalculateAverage_gauravdeshmukh { class ByteString (line 44) | private static class ByteString { method ByteString (line 48) | public ByteString(byte[] bytes) { method getBytes (line 53) | public byte[] getBytes() { method equals (line 57) | @Override method hashCode (line 62) | @Override method toString (line 67) | @Override class Measurement (line 73) | private static class Measurement { method Measurement (line 77) | public Measurement(ByteString station, int value) { method toString (line 82) | @Override class MeasurementAggregator (line 92) | private static class MeasurementAggregator { method toString (line 98) | public String toString() { method round (line 102) | private double round(double value) { method main (line 107) | public static void main(String[] args) throws Exception { method findEolInLong (line 177) | private static int findEolInLong(long word) { method findSemiColonInLong (line 181) | private static int findSemiColonInLong(long word) { method findPositionInLong (line 185) | private static int findPositionInLong(long word, long searchMask) { class ParallelFileReaderTask (line 191) | private static class ParallelFileReaderTask implements Callable result_map) { method dump_insert (line 267) | public void dump_insert(long map_entry, long hash, long string_addr,... class Result (line 277) | static class Result { method round (line 283) | private double round(double value) { method toString (line 287) | @Override method compute_slice (line 293) | private static void compute_slice(final long base_addr, final long sli... method extract_number (line 374) | private static long extract_number(long number_mem_value, long number_... method get_fractional_part (line 396) | private static int get_fractional_part(long number_mem_value, long num... method skip_sign (line 400) | private static int skip_sign(long number_mem_value) { method get_sign (line 407) | private static int get_sign(long number_mem_value) { method compute_hash (line 414) | private static long compute_hash(long x) { // Hash burrowed from artsi... method dump (line 421) | private static void dump(long startAddr, long endAddr) { method get_byte_0_index (line 440) | private static int get_byte_0_index(long value) { method get_dot_index (line 446) | private static int get_dot_index(long value) { method get_newline_index (line 451) | private static int get_newline_index(long value) { method get_semicolon_index (line 456) | private static int get_semicolon_index(long value) { method main (line 463) | public static void main(String[] args) throws IOException, Interrupted... FILE: src/main/java/dev/morling/onebrc/CalculateAverage_giovannicuccu.java class CalculateAverage_giovannicuccu (line 46) | public class CalculateAverage_giovannicuccu { type PartitionCalculator (line 61) | public static interface PartitionCalculator { method computePartitionsBoundaries (line 62) | List computePartitionsBoundaries(Path path); class ProcessorPartitionCalculator (line 65) | public static class ProcessorPartitionCalculator implements PartitionC... method computePartitionsBoundaries (line 67) | public List computePartitionsBoundaries(Path path) { method findEndSegment (line 90) | private long findEndSegment(RandomAccessFile raf, long location, lon... class MeasurementAggregatorVectorized (line 101) | private static class MeasurementAggregatorVectorized { method MeasurementAggregatorVectorized (line 113) | public MeasurementAggregatorVectorized(byte[] data, int offset, int ... method add (line 124) | public void add(int value) { method merge (line 135) | public void merge(MeasurementAggregatorVectorized other) { method toString (line 142) | @Override method round (line 147) | private double round(double value) { method getMin (line 151) | public int getMin() { method getHash (line 155) | public int getHash() { method getLen (line 159) | public int getLen() { method dataEquals (line 163) | public boolean dataEquals(byte[] data, int offset) { method getName (line 168) | public String getName() { method getOffset (line 172) | public int getOffset() { method getData (line 176) | public byte[] getData() { class MeasurementListVectorized (line 181) | private static class MeasurementListVectorized { method add (line 192) | public void add(int len, int hash, int value, MemorySegment memorySe... method addWithByteVector (line 208) | public void addWithByteVector(ByteVector chunk1, int len, int hash, ... method merge (line 226) | public void merge(MeasurementAggregatorVectorized measurementAggrega... method getMeasurements (line 240) | public MeasurementAggregatorVectorized[] getMeasurements() { class MMapReaderMemorySegment (line 246) | private static class MMapReaderMemorySegment { method MMapReaderMemorySegment (line 253) | public MMapReaderMemorySegment(Path path, PartitionCalculator partit... method elaborate (line 259) | public TreeMap elaborate() ... method reduce (line 283) | private TreeMap reduce(List... method merge (line 304) | private void merge(MeasurementListVectorized result, MeasurementList... method computeListForPartition (line 318) | private MeasurementListVectorized computeListForPartition(FileChanne... method hash (line 413) | private static int hash(MemorySegment memorySegment, long start, int... method convertIntoNumber (line 427) | private static int convertIntoNumber(int decimalSepPos, long numberW... method main (line 451) | public static void main(String[] args) throws IOException { FILE: src/main/java/dev/morling/onebrc/CalculateAverage_gnabyl.java class CalculateAverage_gnabyl (line 34) | public class CalculateAverage_gnabyl { method reduceSizeToFitLineBreak (line 45) | private static int reduceSizeToFitLineBreak(FileChannel channel, long ... method readChunks (line 69) | private static List readChunks(int nbChunks) throws IOException { class StationData (line 110) | private static class StationData { method StationData (line 114) | public StationData(float value) { method update (line 121) | public void update(float value) { method getMean (line 128) | public float getMean() { method getMin (line 132) | public float getMin() { method getMax (line 136) | public float getMax() { method mergeWith (line 140) | public void mergeWith(StationData other) { method round (line 149) | static float round(float value) { class ChunkResult (line 153) | private static class ChunkResult { method ChunkResult (line 156) | public ChunkResult() { method getData (line 160) | public StationData getData(int hash) { method addStation (line 164) | public void addStation(int hash, float value) { method print (line 168) | public void print() { method mergeWith (line 184) | public void mergeWith(ChunkResult other) { method processChunk (line 200) | private static ChunkResult processChunk(Chunk chunk) { method processAllChunks (line 259) | private static ChunkResult processAllChunks(List chunks) throws... method main (line 264) | public static void main(String[] args) throws IOException, Interrupted... FILE: src/main/java/dev/morling/onebrc/CalculateAverage_gnmathur.java class CalculateAverage_gnmathur (line 41) | public class CalculateAverage_gnmathur { class Measurement (line 47) | public static final class Measurement { method Measurement (line 53) | public Measurement() { method addReading (line 56) | public synchronized void addReading(double reading) { method round (line 63) | private static double round(double value) { method toString (line 67) | @Override method updateMeasurement (line 74) | private static void updateMeasurement(String line) { method run (line 91) | @Override method adjustEnd (line 126) | public static long adjustEnd(final String fileName, long end) throws I... method readChunked (line 141) | public static void readChunked(final String fileName, final long chunk... method main (line 161) | public static void main(String[] args) { FILE: src/main/java/dev/morling/onebrc/CalculateAverage_godofwharf.java class CalculateAverage_godofwharf (line 41) | public class CalculateAverage_godofwharf { method main (line 64) | public static void main(String[] args) throws Exception { method compute (line 75) | private static Map compute() throws Exc... class Job (line 84) | public static class Job { method Job (line 90) | public Job(final int nThreads) { method compute (line 98) | public void compute(final String path) throws Exception { method mergeInternal (line 171) | private void mergeInternal(final State state) { method sort (line 185) | public Map sort() { method findNextOccurrenceOfNewLine (line 192) | private static LineMetadata findNextOccurrenceOfNewLine(final ByteBu... method findNewLinesVectorized (line 236) | private static SearchResult findNewLinesVectorized(final byte[] page, method breakFileIntoSplits (line 330) | private static List breakFileIntoSplits(final RandomAccessFil... method breakSplitIntoPages (line 368) | private static List breakSplitIntoPages(final long splitStartO... class State (line 400) | public static class State { method State (line 403) | public State() { method update (line 411) | public void update(final Measurement m) { class AggregationKey (line 423) | public static class AggregationKey { method AggregationKey (line 427) | public AggregationKey(final byte[] station, method toString (line 433) | @Override method hashCode (line 438) | @Override method equals (line 443) | @Override class MeasurementAggregator (line 454) | public static class MeasurementAggregator { method MeasurementAggregator (line 460) | public MeasurementAggregator(final double min, method toString (line 470) | public String toString() { method round (line 477) | private double round(double value) { method merge (line 481) | private void merge(final MeasurementAggregator m2) { class NumberUtils (line 489) | public static class NumberUtils { method toDigit (line 490) | public static int toDigit(final char c) { method fastMul10 (line 494) | public static int fastMul10(final int i) { method parseDouble2 (line 498) | public static double parseDouble2(final byte[] b, method Measurement (line 546) | public Measurement(byte[] station, class SearchResult (line 571) | public static class SearchResult { method SearchResult (line 575) | public SearchResult(final int[] offsets, method printDebugMessage (line 582) | private static void printDebugMessage(final String message, FILE: src/main/java/dev/morling/onebrc/CalculateAverage_gonix.java class CalculateAverage_gonix (line 32) | public class CalculateAverage_gonix { method main (line 36) | public static void main(String[] args) throws IOException { method buildChunks (line 52) | private static List buildChunks(RandomAccessFile fil... class Aggregator (line 80) | private static class Aggregator { method Aggregator (line 101) | Aggregator() { method processChunk (line 110) | Aggregator processChunk(MappedByteBuffer buf) { method processChunkLongs (line 130) | Aggregator processChunkLongs(ByteBuffer buf, int limit) { method stream (line 198) | public Stream stream() { method hash1 (line 204) | private static long hash1(long value) { method hash (line 208) | private static long hash(long hash, long value) { method hash (line 212) | private static int hash(long hash) { method valueSepMark (line 217) | private static long valueSepMark(long keyLong) { method tailBits (line 225) | private static int tailBits(long valueSepMark) { method valueOffset (line 229) | private static int valueOffset(int tailBits) { method tailAndLen (line 233) | private static long tailAndLen(int tailBits, long keyLong, long keyL... method decimalSepMark (line 239) | private static int decimalSepMark(long value) { method decimalValue (line 249) | private static int decimalValue(int decimalSepMark, long value) { method nextKeyOffset (line 273) | private static int nextKeyOffset(int decimalSepMark) { method add1 (line 277) | private void add1(ByteBuffer buf, int start, long tailAndLen, int ha... method add2 (line 287) | private void add2(ByteBuffer buf, int start, long keyLong, long tail... method addN (line 297) | private void addN(ByteBuffer buf, int start, long tailAndLen, int ha... method create (line 307) | private int create(ByteBuffer buf, int start, long tailAndLen, int m... method update1 (line 330) | private boolean update1(int offset, long tailAndLen, int measurement) { method update2 (line 338) | private boolean update2(int offset, long keyLong, long tailAndLen, i... method updateN (line 346) | private boolean updateN(int offset, ByteBuffer buf, int start, long ... method updateStats (line 365) | private void updateStats(int memPos, int measurement) { class Entry (line 376) | public static class Entry { method Entry (line 381) | Entry(long[] mem, int offset) { method getKey (line 386) | public String getKey() { method add (line 403) | public Entry add(Entry other) { method getValue (line 415) | public Entry getValue() { method toString (line 419) | @Override method round (line 427) | private static double round(double value) { FILE: src/main/java/dev/morling/onebrc/CalculateAverage_gonixunsafe.java class CalculateAverage_gonixunsafe (line 31) | public class CalculateAverage_gonixunsafe { method main (line 36) | public static void main(String[] args) throws Exception { class Aggregator (line 66) | private static class Aggregator { method alloc (line 94) | private static long alloc(long size) { method buildChunks (line 112) | static List buildChunks(RandomAccessFile file, int count) thr... method processChunk (line 140) | Aggregator processChunk(Chunk chunk) { method processChunk (line 167) | private Aggregator processChunk(long startAddr, long endAddr) { method hash1 (line 235) | private static long hash1(long value) { method hash (line 239) | private static long hash(long hash, long value) { method hash (line 243) | private static int hash(long hash) { method valueSepMark (line 248) | private static long valueSepMark(long keyLong) { method tailBits (line 256) | private static int tailBits(long valueSepMark) { method valueOffset (line 260) | private static int valueOffset(int tailBits) { method tailAndLen (line 264) | private static long tailAndLen(int tailBits, long keyLong, long keyL... method decimalSepMark (line 270) | private static int decimalSepMark(long value) { method decimalValue (line 280) | private static int decimalValue(int decimalSepMark, long value) { method nextKeyOffset (line 304) | private static int nextKeyOffset(int decimalSepMark) { method add1 (line 308) | private void add1(long keyStartAddr, long tailAndLen, int hash, int ... method add2 (line 318) | private void add2(long keyStartAddr, long keyLong, long tailAndLen, ... method addN (line 328) | private void addN(long keyStartAddr, long tailAndLen, int hash, int ... method create (line 338) | private long create(long keyStartAddr, long tailAndLen, int hash, in... method update1 (line 359) | private static boolean update1(long entryAddr, long tailAndLen, int ... method update2 (line 368) | private static boolean update2(long entryAddr, long keyLong, long ta... method updateN (line 380) | private static boolean updateN(long entryAddr, long keyStartAddr, lo... method updateStats (line 399) | private static void updateStats(long addr, int measurement) { method updateStats (line 415) | private static void updateStats(long addr, long count, long sum, int... method merge (line 431) | public Aggregator merge(Aggregator other) { method toString (line 470) | @Override class Chunk (line 492) | static class Chunk { method Chunk (line 499) | Chunk(MemorySegment file, long chunkStartAddr, long chunkEndAddr, ... class Entry (line 508) | static class Entry implements Comparable { method Entry (line 513) | Entry(long entryAddr) { method compareTo (line 524) | @Override method toString (line 529) | @Override method appendTo (line 537) | void appendTo(StringBuilder sb) { method round (line 548) | private static double round(double value) { FILE: src/main/java/dev/morling/onebrc/CalculateAverage_hallvard.java class CalculateAverage_hallvard (line 33) | public class CalculateAverage_hallvard { class ResultRow (line 35) | private static class ResultRow { method ResultRow (line 41) | public ResultRow(String name) { method ResultRow (line 49) | public ResultRow(String name, int value) { method toString (line 55) | @Override method update (line 60) | void update(int value) { method update (line 71) | void update(ResultRow row) { class Trie (line 83) | private static class Trie { method toString (line 87) | String toString(String prefix, String separator, String suffix, Func... method forEach (line 113) | void forEach(Consumer consumer) { method forEach (line 117) | private void forEach(Node node, Consumer consumer) { method getNode (line 129) | Node getNode(ByteBuffer byteBuffer, int start, int end) { method createDefaultNode (line 169) | final Node createDefaultNode() { class Node (line 173) | private static class Node { method Node (line 179) | Node() { method Node (line 185) | Node(int length) { method idx (line 190) | static final int idx(byte b) { method computeAverages (line 196) | private static boolean computeAverages(ByteBuffer byteBuffer, int star... method doTask (line 260) | Trie doTask(FileChannel channel) { method main (line 278) | public static void main(String[] args) throws IOException { FILE: src/main/java/dev/morling/onebrc/CalculateAverage_hchiorean.java class CalculateAverage_hchiorean (line 39) | public class CalculateAverage_hchiorean { method parseLines (line 41) | private static Map parseLines(Integer key, CharBuffe... method parseSanitizedCharBuffer (line 62) | private static void parseSanitizedCharBuffer(CharSequence sequence, Ma... method addParsedDataToMap (line 91) | private static void addParsedDataToMap(Map data, Str... method readFile (line 103) | static Map readFile(File file) throws Exception { method aggregate (line 162) | private static void aggregate(Map chunks, Map dataMap) { method round (line 188) | private static double round(double value) { method format (line 192) | private static String format(Map.Entry entry) { method main (line 200) | public static void main(String[] args) throws Exception { FILE: src/main/java/dev/morling/onebrc/CalculateAverage_hundredwatt.java class CalculateAverage_hundredwatt (line 31) | public class CalculateAverage_hundredwatt { class Record (line 89) | static class Record { method Record (line 95) | public Record() { method updateWith (line 102) | public void updateWith(short value) { method toString (line 109) | @Override method round (line 114) | double round(double v) { class HashTable (line 122) | static class HashTable { method HashTable (line 131) | public HashTable() { method putOrMerge (line 137) | public void putOrMerge(int hash, int length, long[] key, short value) { method getAll (line 155) | public List getAll() { method keyToString (line 166) | private static String keyToString(long[] key) { method merge (line 186) | private static Record merge(Record v, Record value) { method processChunk (line 195) | private static int processChunk(ByteBuffer bb, HashTable hashTable, lo... method main (line 267) | public static void main(String[] args) throws IOException { FILE: src/main/java/dev/morling/onebrc/CalculateAverage_ianopolous.java class CalculateAverage_ianopolous (line 36) | public class CalculateAverage_ianopolous { method main (line 41) | public static void main(String[] args) throws Exception { method matchingStationBytes (line 66) | public static boolean matchingStationBytes(int start, int end, MappedB... method parseStation (line 74) | public static Stat parseStation(int start, int end, int hash, MappedBy... method parseStats (line 102) | public static List> parseStats(long startByte, long endByte) { class Stat (line 168) | public static class Stat { method Stat (line 174) | public Stat(byte[] name) { method add (line 178) | public void add(short value) { method merge (line 187) | public Stat merge(Stat value) { method round (line 197) | private static double round(double value) { method name (line 201) | public String name() { method toString (line 205) | public String toString() { FILE: src/main/java/dev/morling/onebrc/CalculateAverage_ianopolousfast.java class CalculateAverage_ianopolousfast (line 43) | public class CalculateAverage_ianopolousfast { method main (line 52) | public static void main(String[] args) throws Exception { method matchingStationBytes (line 80) | public static boolean matchingStationBytes(long start, long end, Memor... method hash (line 94) | private static int hash(MemorySegment memorySegment, long start, int l... method createStation (line 108) | public static Stat createStation(long start, long end, MemorySegment b... method dedupeStation (line 115) | public static Stat dedupeStation(long start, long end, MemorySegment b... method getMinus (line 130) | public static short getMinus(long d) { method processTemperature (line 134) | public static void processTemperature(long lineSplit, int size, Memory... method lineSize (line 149) | private static int lineSize(long lineStart, MemorySegment buffer) { method keySize (line 161) | private static int keySize(int lineSize, long lineStart, MemorySegment... method parseStats (line 166) | public static Stat[] parseStats(long start1, long end2, MemorySegment ... class Stat (line 226) | public static class Stat { method Stat (line 233) | public Stat(byte[] name) { method add (line 240) | public void add(short value) { method merge (line 249) | public Stat merge(Stat value) { method round (line 259) | private static double round(double value) { method name (line 263) | public String name() { method toString (line 267) | public String toString() { FILE: src/main/java/dev/morling/onebrc/CalculateAverage_imrafaelmerino.java class CalculateAverage_imrafaelmerino (line 95) | public class CalculateAverage_imrafaelmerino { method main (line 100) | public static void main(String[] args) throws IOException { method calculateStats (line 106) | private static Map calculateStats(String file, method combine (line 123) | private static Map combine(Map xs, method parse (line 141) | private static Map parse(ByteBuffer bb) { method fileMemoryStream (line 174) | private static Stream fileMemoryStream(FileChannel fileCha... method fileMemoryIterator (line 185) | private static Iterator fileMemoryIterator(FileChannel fil... class Stat (line 218) | private static final class Stat { method combine (line 225) | public static Stat combine(Stat m1, method update (line 235) | private void update(int value) { method toString (line 242) | @Override method round (line 247) | private double round(double value) { class ManagedComputation (line 252) | private static final class ManagedComputation { method compute (line 253) | static T compute(final Supplier supplier) { class ManagedSupplier (line 266) | private static class ManagedSupplier implements ForkJoinPool.Mana... method ManagedSupplier (line 271) | private ManagedSupplier(final Supplier supplier) { method block (line 275) | @Override method isReleasable (line 282) | @Override method getResult (line 287) | T getResult() { FILE: src/main/java/dev/morling/onebrc/CalculateAverage_isolgpus.java class CalculateAverage_isolgpus (line 31) | public class CalculateAverage_isolgpus { method main (line 44) | public static void main(String[] args) throws IOException, Interrupted... method mergeMeasurements (line 74) | private static Map mergeMeasurements(Lis... method handleChunk (line 96) | private static MeasurementCollector[] handleChunk(FileChannel channel,... method resolveMeasurementCollector (line 176) | private static MeasurementCollector resolveMeasurementCollector(Measur... method nameEquals (line 204) | private static boolean nameEquals(byte[] existingName, int existingNam... method resolveValue (line 213) | private static int resolveValue(int valueIndex, byte[] valueBuffer, in... method readNumber (line 229) | private static int readNumber(boolean isNegative, byte[] valueBuffer, ... class MeasurementCollector (line 241) | private static class MeasurementCollector { method MeasurementCollector (line 250) | public MeasurementCollector(byte[] name, int nameSum) { method feed (line 256) | public void feed(int value) { method merge (line 263) | public void merge(MeasurementCollector measurementCollector) { class MeasurementResult (line 271) | private static class MeasurementResult { method MeasurementResult (line 277) | public MeasurementResult(String name, double mean, BigDecimal max, B... method toString (line 285) | @Override method from (line 290) | public static MeasurementResult from(MeasurementCollector mc) { FILE: src/main/java/dev/morling/onebrc/CalculateAverage_itaske.java class CalculateAverage_itaske (line 27) | public class CalculateAverage_itaske { method Measurement (line 33) | Measurement(double value) { method toString (line 38) | public String toString() { method round (line 49) | private double round(double value) { method main (line 54) | public static void main(String[] args) throws IOException { FILE: src/main/java/dev/morling/onebrc/CalculateAverage_ivanklaric.java class CalculateAverage_ivanklaric (line 25) | public class CalculateAverage_ivanklaric { method toString (line 29) | public String toString() { method round (line 33) | private double round(double num) { method main (line 38) | public static void main(String[] args) throws IOException { FILE: src/main/java/dev/morling/onebrc/CalculateAverage_iziamos.java class CalculateAverage_iziamos (line 33) | public class CalculateAverage_iziamos { method initUnsafe (line 36) | private static sun.misc.Unsafe initUnsafe() { method main (line 50) | public static void main(String[] args) throws Exception { method toString (line 86) | public String toString() { method formatLong (line 90) | private double formatLong(final long value) { method round (line 94) | private double round(double value) { method processSegment (line 99) | private static CompletableFuture processSegment(final long baseP... method computeAbsoluteEndWithSlack (line 119) | private static long computeAbsoluteEndWithSlack(final long chunk, fina... method skipIncomplete (line 123) | private static long skipIncomplete(final long basePointer, final long ... method processEvents (line 135) | private static long processEvents(final long start, final long limit) { method scalarLoop (line 141) | private static void scalarLoop(final long start, final long limit, fin... class LoopCursor (line 152) | public static class LoopCursor { method LoopCursor (line 158) | public LoopCursor(final long pointer, final long limit) { method getCurrentAddress (line 163) | public long getCurrentAddress() { method getStringLength (line 167) | public int getStringLength() { method getHash (line 180) | public int getHash() { method getCurrentValue (line 184) | public int getCurrentValue() { method getCurrentValueMeryKitty (line 191) | public int getCurrentValueMeryKitty() { method hasMore (line 212) | public boolean hasMore() { type ResultConsumer (line 217) | public interface ResultConsumer { method consume (line 218) | void consume(final String name, final int min, final int max, final ... class ByteBackedResultSet (line 221) | static class ByteBackedResultSet { method createResultSet (line 234) | public static long createResultSet() { method put (line 240) | public static void put(final long baseAddress, final long address, f... method forEach (line 259) | public static void forEach(final long baseAddress, final ResultConsu... method merge (line 282) | public static void merge(final long baseAddress, final long other) { method findSlot (line 318) | private static int findSlot(final long baseAddress, method stringEquals (line 339) | private static boolean stringEquals(final long thisNameAddress, method mask (line 362) | public static int mask(final int value) { FILE: src/main/java/dev/morling/onebrc/CalculateAverage_japplis.java class CalculateAverage_japplis (line 50) | public class CalculateAverage_japplis { method parseTemperatures (line 64) | private void parseTemperatures(File measurementsFile) throws Exception { method readBlock (line 102) | private Callable readBlock(File measurementsFile, long bloc... method parseTemperaturesBlock (line 134) | private Runnable parseTemperaturesBlock(ByteArray buffer, int startInd... method handleSplitLine (line 156) | private int handleSplitLine(byte[] buffer) { method readSplitLine (line 174) | private int readSplitLine(byte[] buffer) { method readFirstLines (line 190) | private int readFirstLines(byte[] buffer) { method readNextLine (line 213) | private int readNextLine(int bufferIndex, byte[] buffer, Map blockCi... method printTemperatureStatsByCity (line 274) | private void printTemperatureStatsByCity() { method getTemperatureStats (line 291) | private String getTemperatureStats(IntSummaryStatistics measurement) { method appendTemperature (line 304) | private void appendTemperature(StringBuilder resultBuilder, int temper... method main (line 316) | public static final void main(String... args) throws Exception { class ByteArray (line 323) | private class ByteArray { method ByteArray (line 327) | private ByteArray(int size) { method array (line 331) | private byte[] array() { class Text (line 336) | private static class Text implements Comparable { method Text (line 342) | private Text(byte[] buffer, int startIndex, int length, int hash) { method getByteText (line 348) | private static Text getByteText(byte[] buffer, int startIndex, int l... method hashCode (line 359) | private static int hashCode(byte[] buffer, int startIndex, int lengt... method hashCode (line 368) | @Override method equals (line 373) | @Override method compareTo (line 381) | @Override method toString (line 386) | @Override FILE: src/main/java/dev/morling/onebrc/CalculateAverage_jatingala.java class CalculateAverage_jatingala (line 25) | public class CalculateAverage_jatingala { method main (line 29) | public static void main(final String[] args) throws IOException { method getChunkPositions (line 61) | private static long[][] getChunkPositions(final RandomAccessFile file,... method consumeChunk (line 82) | private static Map consumeChunk(final MappedByteBu... method parseKey (line 94) | private static String parseKey(final MappedByteBuffer mappedByteBuffer) { method parseNumber (line 105) | private static double parseNumber(final MappedByteBuffer mappedByteBuf... class Statistics (line 125) | private static class Statistics { method round (line 131) | private static double round(final double value) { method update (line 135) | public void update(final double reading) { method merge (line 142) | public void merge(final Statistics other) { method toString (line 149) | @Override FILE: src/main/java/dev/morling/onebrc/CalculateAverage_javamak.java class CalculateAverage_javamak (line 34) | public class CalculateAverage_javamak { method Measurement (line 39) | private Measurement(String[] parts) { method toString (line 45) | public String toString() { method round (line 49) | private double round(double value) { class MeasurementAggregator (line 56) | private static class MeasurementAggregator { method main (line 63) | public static void main(String[] args) throws IOException { method getLinesFromFile (line 103) | private static Stream getLinesFromFile(Path path, Map.Entry calcChunks(Path path) throws IOException { method calculateEndPosition (line 131) | private static long calculateEndPosition(Path path, long startPos, lon... FILE: src/main/java/dev/morling/onebrc/CalculateAverage_jbachorik.java class CalculateAverage_jbachorik (line 31) | public class CalculateAverage_jbachorik { class Key (line 32) | private static final class Key { method Key (line 39) | Key(ByteBuffer bb, int offset, int len, long v0, long v1, int hash) { method equals (line 48) | public boolean equals(int offset, int len, long v0, long v1) { method toString (line 64) | @Override class Stats (line 72) | private static final class Stats { method Stats (line 78) | Stats() { method add (line 85) | Stats add(long value) { method merge (line 93) | Stats merge(Stats other) { method toString (line 103) | @Override class StatsMap (line 109) | private static final class StatsMap { class StatsHolder (line 110) | private static class StatsHolder { method StatsHolder (line 114) | StatsHolder(Key slice, Stats stats) { method toString (line 119) | @Override method getOrInsert (line 132) | public Stats getOrInsert(ByteBuffer buffer, int offset, int len, int... method forEach (line 150) | public void forEach(BiConsumer consumer) { method main (line 164) | public static void main(String[] args) throws Exception { method processChunk (line 208) | private static StatsMap processChunk(ByteBuffer bb) { method fastParse (line 302) | private static int fastParse(long word, int len) { method mmap (line 324) | private static ByteBuffer[] mmap(FileChannel fc, int splitSize) throws... method compilePattern (line 368) | private static long compilePattern(byte byteToFind) { method firstInstance (line 380) | private static int firstInstance(long word, long pattern) { method preprocess (line 387) | private static long preprocess(long word, long pattern) { FILE: src/main/java/dev/morling/onebrc/CalculateAverage_jeevjyot.java class CalculateAverage_jeevjyot (line 30) | public class CalculateAverage_jeevjyot { method main (line 34) | public static void main(String[] args) throws IOException { method parseDoubleFast (line 50) | public static double parseDoubleFast(String str) { method round (line 74) | private static double round(double value) { class tempMeasurement (line 78) | public static class tempMeasurement { method tempMeasurement (line 84) | public tempMeasurement(double temString) { method recordTemp (line 91) | public synchronized void recordTemp(Double temp) { method getAverage (line 98) | double getAverage() { method toString (line 102) | @Override FILE: src/main/java/dev/morling/onebrc/CalculateAverage_jerrinot.java class CalculateAverage_jerrinot (line 52) | public class CalculateAverage_jerrinot { method unsafe (line 89) | private static Unsafe unsafe() { method main (line 100) | public static void main(String[] args) throws Exception { method spawnWorker (line 109) | private static void spawnWorker() throws IOException { method calculate (line 124) | static void calculate() throws Exception { method printResults (line 159) | private static void printResults(TreeMap accumul... method ceilPow2 (line 183) | public static int ceilPow2(int i) { class Processor (line 193) | private static class Processor implements Runnable { method parseAndStoreTemperature (line 242) | private long parseAndStoreTemperature(long startCursor, long baseEnt... method getDelimiterMask (line 274) | private static long getDelimiterMask(final long word) { method accumulateStatus (line 280) | void accumulateStatus(TreeMap dividirArchivo(File archivo) throws IOEx... method main (line 94) | public static void main(String[] args) throws InterruptedException, IO... class Index (line 152) | static class Index { method Index (line 158) | public Index() { method Index (line 162) | public Index(byte data[], int fromIndex, int length) { method setData (line 169) | public void setData(byte data[], int fromIndex, int length) { method calcHashCode (line 180) | private int calcHashCode(int result, byte[] a, int fromIndex, int le... method hashCode (line 188) | @Override method equals (line 193) | @Override class MiTarea (line 210) | static class MiTarea implements AutoCloseable { method MiTarea (line 216) | public MiTarea(File file, Particion particion) throws IOException { method close (line 222) | @Override method calcularMediciones (line 233) | public Map calcularMediciones() throws IOException { method buscarSemicolon (line 291) | public int buscarSemicolon(byte data[], int len) { method updateMediciones (line 303) | public void updateMediciones(byte data[], int pos, int semicolon) { method strToInt (line 322) | public int strToInt(byte linea[], int idx, int posSeparator) { class Medicion (line 335) | static class Medicion { method Medicion (line 343) | public Medicion(byte estacion[], int count, int tempMin, int tempMax... method update (line 352) | public void update(int count, int tempMin, int tempMax, int tempSum) { method round (line 359) | public double round(double number) { method getNombreEstacion (line 363) | public String getNombreEstacion() { method toString (line 370) | @Override FILE: src/main/java/dev/morling/onebrc/CalculateAverage_jincongho.java class CalculateAverage_jincongho (line 45) | public class CalculateAverage_jincongho { method initUnsafe (line 51) | private static Unsafe initUnsafe() { class VectorUtils (line 65) | protected static class VectorUtils { method findDelimiter (line 72) | public static int findDelimiter(MemorySegment data, long offset) { method hashCode (line 135) | public static int hashCode(final MemorySegment array, final long off... method notEquals (line 154) | private static boolean notEquals(MemorySegment a, long aOffset, Memo... class PartitionAggr (line 197) | protected static class PartitionAggr { method PartitionAggr (line 207) | public PartitionAggr() { method update (line 216) | public void update(MemorySegment key, long keyStart, short keyLength... method mergeTo (line 243) | public void mergeTo(ResultAggr result) { class ResultAggr (line 274) | protected static class ResultAggr extends HashMap { method ByteKey (line 282) | public ByteKey(MemorySegment data, long offset, short length) { method equals (line 288) | @Override method hashCode (line 294) | @Override method toString (line 299) | @Override method compareTo (line 310) | @Override class Measurement (line 316) | protected static class Measurement { method toString (line 322) | @Override method ResultAggr (line 329) | public ResultAggr(int initialCapacity, float loadFactor) { method toSorted (line 333) | public Map toSorted() { class Partition (line 339) | protected static class Partition implements Runnable { method Partition (line 346) | public Partition(MemorySegment data, long offset, long limit, Partit... method run (line 353) | @Override method main (line 425) | public static void main(String[] args) throws IOException, Interrupted... method testMain (line 482) | public static void testMain(String[] args) { method testHashCode (line 487) | private static void testHashCode() { method testNotEquals (line 499) | private static void testNotEquals() { method assertTrue (line 528) | private static void assertTrue(boolean condition) { FILE: src/main/java/dev/morling/onebrc/CalculateAverage_jonathanaotearoa.java class CalculateAverage_jonathanaotearoa (line 36) | public class CalculateAverage_jonathanaotearoa { method main (line 70) | public static void main(final String[] args) throws IOException { method resultsToString (line 88) | private static String resultsToString(final Map processFile(final Pa... method processTinyFile (line 148) | private static SortedMap processTinyFile(fina... method processFile (line 174) | private static SortedMap processFile(final Fi... method createChunks (line 202) | private static Stream createChunks(final long fileAddress, fina... method processChunk (line 237) | private static Repository processChunk(final Chunk chunk) { method Chunk (line 336) | public Chunk(final long startAddress, final long lastByteAddress, fina... method getWord (line 353) | public long getWord(final long address) { class TemperatureData (line 371) | private static abstract class TemperatureData { method TemperatureData (line 378) | protected TemperatureData(final short temp) { method addTemp (line 384) | void addTemp(final short temp) { method merge (line 395) | TemperatureData merge(final TemperatureData other) { method getMin (line 407) | double getMin() { method getMax (line 411) | double getMax() { method getMean (line 415) | double getMean() { method round (line 419) | private static double round(double value) { class SimpleStationData (line 429) | private static final class SimpleStationData extends TemperatureData i... method SimpleStationData (line 433) | SimpleStationData(final String name, final short temp) { method compareTo (line 438) | @Override class StationData (line 444) | private static final class StationData extends TemperatureData impleme... method StationData (line 451) | StationData(final int nameHash, final long nameAddress, final byte n... method compareTo (line 458) | @Override method getName (line 463) | String getName() { class Repository (line 476) | private static final class Repository { method Repository (line 483) | public Repository() { method addTemp (line 495) | public void addTemp(final int nameHash, final long nameAddress, fina... method entries (line 505) | public Stream entries() { method findIndex (line 509) | private int findIndex(int nameHash, final long nameAddress, final by... method isCollision (line 519) | private boolean isCollision(final int index, final long nameHash, fi... method isMemoryEqual (line 543) | private static boolean isMemoryEqual(final long address1, final long... class TestRunner (line 561) | public static final class TestRunner { method main (line 562) | public static void main(String[] args) throws IOException { FILE: src/main/java/dev/morling/onebrc/CalculateAverage_jotschi.java class CalculateAverage_jotschi (line 32) | public class CalculateAverage_jotschi { method main (line 35) | public static void main(String[] args) throws IOException { method parseFile (line 40) | @SuppressWarnings("preview") method getFileSegments (line 95) | private static List getFileSegments(MemorySegment memSeg... method merge (line 120) | private static Result2 merge(Result2 v, Result2 value) { method merge (line 124) | private static Result2 merge(Result2 v, double value, double value1, d... method findSegment (line 132) | private static long findSegment(int i, int skipSegment, MemorySegment ... class Result2 (line 147) | class Result2 { method Result2 (line 151) | Result2(double value) { method toString (line 156) | @Override method round (line 161) | double round(double v) { class ByteArrayToResultMap2 (line 176) | class ByteArrayToResultMap2 { method putOrMerge (line 181) | public void putOrMerge(byte[] key, int offset, int size, double temp, ... method getAll (line 204) | public List getAll() { FILE: src/main/java/dev/morling/onebrc/CalculateAverage_jparera.java class CalculateAverage_jparera (line 42) | public class CalculateAverage_jparera { method main (line 68) | public static void main(String[] args) throws IOException, Interrupted... method chunks (line 87) | private static List chunks(MemorySegment ms, int splits) { class Chunk (line 103) | private static final class Chunk { method Chunk (line 132) | Chunk(MemorySegment segment) { method parse (line 137) | public List parse() { method vectorizedEntry (line 157) | private Entry vectorizedEntry() { method entry (line 204) | private Entry entry() { method vectorizedValue (line 245) | private int vectorizedValue() { method value (line 255) | private int value() { method hash (line 280) | private static int hash(MemorySegment ms, long start, int len) { method expect (line 293) | private void expect(byte b) { method consume (line 299) | private boolean consume(byte b) { method hasCurrent (line 307) | private boolean hasCurrent() { method next (line 311) | private void next() { class Entry (line 321) | private static final class Entry { method Entry (line 336) | Entry(int keyLength, int hash) { method key (line 341) | public String key() { method setkey (line 345) | void setkey(byte[] keys, int offset) { method add (line 349) | public void add(int value) { method merge (line 356) | public Entry merge(Entry o) { method toString (line 364) | @Override method decimal (line 370) | private static String decimal(long value) { FILE: src/main/java/dev/morling/onebrc/CalculateAverage_justplainlaake.java class CalculateAverage_justplainlaake (line 82) | public class CalculateAverage_justplainlaake { method main (line 117) | public static void main(String[] args) throws IOException { method process (line 208) | private static OpenMap process(long fromAddress, long toAddress) { method getMurmurHash3 (line 280) | public final static long getMurmurHash3(long x) { method getMaskOffset (line 291) | private static short getMaskOffset(long value, byte test) { class Station (line 301) | private static class Station { method Station (line 308) | Station(long nameStart, long nameEnd) { method fillName (line 314) | protected void fillName() { method toString (line 320) | @Override class OpenMap (line 328) | public static class OpenMap { method OpenMap (line 339) | public OpenMap() { method merge (line 349) | public void merge(long key, Station toMerge) { method getOrCreate (line 374) | public Station getOrCreate(final long key, long currentAddress, long... method forEach (line 393) | public void forEach(OpenConsumer consumer) { method toArray (line 401) | public Station[] toArray() { method getNextPowerOfTwo (line 414) | public long getNextPowerOfTwo(long length) { method compareMemory (line 425) | private boolean compareMemory(long start1, long start2, int length) { type OpenConsumer (line 447) | @FunctionalInterface method accept (line 449) | void accept(long key, Station value); type OpenFunction (line 452) | @FunctionalInterface method action (line 454) | Station action(long key, Station value); FILE: src/main/java/dev/morling/onebrc/CalculateAverage_karthikeyan97.java class CalculateAverage_karthikeyan97 (line 49) | public class CalculateAverage_karthikeyan97 { method initUnsafe (line 55) | private static Unsafe initUnsafe() { class MeasurementAggregator (line 72) | private static class MeasurementAggregator { method toString (line 78) | public String toString() { method round (line 87) | private double round(double value) { method main (line 92) | public static void main(String[] args) throws Exception { class modifiedbytearray (line 326) | class modifiedbytearray { method modifiedbytearray (line 333) | modifiedbytearray(byte[] arr, int start, int end, int hashcode) { method getStationName (line 341) | public String getStationName() { method getArr (line 345) | public byte[] getArr() { method toString (line 349) | @Override method equals (line 354) | @Override method getHashcode (line 360) | public int getHashcode() { method hashCode (line 364) | @Override FILE: src/main/java/dev/morling/onebrc/CalculateAverage_kevinmcmurtrie.java class CalculateAverage_kevinmcmurtrie (line 43) | public class CalculateAverage_kevinmcmurtrie implements AutoCloseable { class Accumulator (line 66) | public static class Accumulator { method compare (line 68) | @Override method Accumulator (line 76) | public Accumulator(final int bucketCount) { class Element (line 87) | public static class Element { method Element (line 96) | public Element(final Element collision, final char[] line, final i... method Element (line 106) | public Element(final Element collision, final Element src) { method accumulate (line 116) | void accumulate(final long value) { method merge (line 123) | private void merge(final Element a) { method toString (line 130) | @Override method hasher (line 142) | static private final int hasher(final char[] buf, final int start, f... method matches (line 153) | static boolean matches(final Element o, final char[] str, final int ... method matches (line 157) | static boolean matches(final Element a, final Element b) { method merge (line 166) | void merge(final Accumulator src) { method accumulate (line 192) | void accumulate(final char[] buf, final int delimiterPos, final int ... method toStream (line 212) | public Stream toStream() { method fixedToString (line 254) | static String fixedToString(final double d) { method readFixed (line 263) | static long readFixed(final char[] str, final int offset, final int ... method CalculateAverage_kevinmcmurtrie (line 311) | public CalculateAverage_kevinmcmurtrie(final String path) throws IOExc... method close (line 315) | @Override class LineAlignedInput (line 327) | static class LineAlignedInput implements AutoCloseable { method LineAlignedInput (line 332) | public LineAlignedInput(final InputStream in, final int maxLineLengt... method fillChunk (line 337) | public int fillChunk(final byte buf[]) throws IOException { method close (line 366) | @Override class LineAlignedReader (line 379) | static class LineAlignedReader implements AutoCloseable { method LineAlignedReader (line 384) | public LineAlignedReader(final Reader in, final int maxLineLength) { method fillChunk (line 389) | public int fillChunk(final char buf[]) throws IOException { method close (line 418) | @Override method fillFromFile (line 424) | private int fillFromFile(final byte buf[]) throws IOException { method collect (line 434) | public Accumulator collect() throws IOException { method collectParallel (line 484) | public Accumulator collectParallel(final int threads) throws Interrupt... method main (line 502) | public static void main(final String args[]) throws IOException, Inter... FILE: src/main/java/dev/morling/onebrc/CalculateAverage_kgeri.java class CalculateAverage_kgeri (line 36) | public class CalculateAverage_kgeri { class MeasurementAggregate (line 40) | private static class MeasurementAggregate { method append (line 46) | public void append(double measurement) { method merge (line 53) | public void merge(MeasurementAggregate other) { method toString (line 60) | @Override method round (line 65) | private double round(double value) { class StringSlice (line 73) | private static class StringSlice { method StringSlice (line 78) | public StringSlice(StringSlice other) { method StringSlice (line 84) | public StringSlice(byte[] buf, int len) { method length (line 90) | public int length() { method hashCode (line 94) | @Override method equals (line 99) | @Override method toString (line 104) | @Override method calculateHash (line 109) | protected void calculateHash() { class MutableStringSlice (line 120) | private static class MutableStringSlice extends StringSlice { method MutableStringSlice (line 122) | public MutableStringSlice(byte[] buf) { method updateLength (line 126) | public void updateLength(int length) { method clear (line 131) | public void clear() { method readChunk (line 137) | private static Map readChunk(FileCh... method parseDoubleFrom (line 192) | private static double parseDoubleFrom(byte[] buf, int offset, int leng... method main (line 208) | public static void main(String[] args) throws IOException { FILE: src/main/java/dev/morling/onebrc/CalculateAverage_khmarbaise.java class CalculateAverage_khmarbaise (line 29) | public class CalculateAverage_khmarbaise { method main (line 46) | public static void main(String[] args) throws IOException { FILE: src/main/java/dev/morling/onebrc/CalculateAverage_kuduwa_keshavram.java class CalculateAverage_kuduwa_keshavram (line 36) | public class CalculateAverage_kuduwa_keshavram { method initUnsafe (line 41) | private static Unsafe initUnsafe() { method main (line 52) | public static void main(String[] args) throws IOException, Interrupted... method getMeasurementIterator (line 104) | private static Iterator getMeasurementIterator(Result res... class Result (line 130) | static class Result { method putOrMerge (line 136) | private static void putOrMerge(Result result, Measurement measurement) { method equals (line 155) | private static boolean equals(byte[] city1, byte[] city2) { class FileSegment (line 164) | private static final class FileSegment { method FileSegment (line 168) | private FileSegment(long start, long end) { class Measurement (line 174) | private static final class Measurement { method Measurement (line 184) | private Measurement(int hash, byte[] city, int temp) { method merge (line 191) | private void merge(Measurement m2) { method toString (line 198) | @Override method getFileSegments (line 205) | private static Stream getFileSegments(final File file) th... FILE: src/main/java/dev/morling/onebrc/CalculateAverage_kumarsaurav123.java class CalculateAverage_kumarsaurav123 (line 34) | public class CalculateAverage_kumarsaurav123 { method round (line 46) | private double round(double value) { method toString (line 50) | @Override method main (line 64) | public static void main(String[] args) throws IOException, ExecutionEx... method run (line 69) | public static String run(String filePath) throws IOException, Interrup... method initArray (line 121) | private static void initArray(int i, int[] count, double[] min, double... method createStartAndEnd (line 130) | private static ArrayList createStartAndEnd(int chunksize, int nC... method createRunnable (line 153) | public static Callable createRunnable(MemorySegment memorySegme... method getaDouble (line 220) | private static double getaDouble(byte[] value) { class StringHolder (line 237) | static class StringHolder implements Comparable { method StringHolder (line 240) | public StringHolder(byte[] bytes) { method toString (line 244) | @Override method hashCode (line 249) | @Override method equals (line 254) | @Override method compareTo (line 259) | @Override FILE: src/main/java/dev/morling/onebrc/CalculateAverage_lawrey.java class CalculateAverage_lawrey (line 27) | public class CalculateAverage_lawrey { class Measurement (line 33) | static class Measurement { method Measurement (line 40) | public Measurement() { method sample (line 44) | public void sample(double temp) { method toString (line 52) | public String toString() { method round (line 57) | private double round(double value) { method merge (line 62) | public Measurement merge(Measurement m2) { class Key (line 72) | static class Key { method hashCode (line 77) | @Override method equals (line 83) | @Override method toString (line 94) | @Override method append (line 100) | public void append(byte b) { method clear (line 106) | public void clear() { method main (line 111) | public static void main(String[] args) throws IOException { method mergeMeasurementMaps (line 132) | private static Map mergeMeasurementMaps(Map extractMeasurementsFromChunk(long... method readTemperatureFromBuffer (line 170) | private static int readTemperatureFromBuffer(MappedByteBuffer mbb) { method readKey (line 200) | private static void readKey(MappedByteBuffer mbb, Key key) { method skipToFirstLine (line 210) | private static void skipToFirstLine(MappedByteBuffer mbb) { FILE: src/main/java/dev/morling/onebrc/CalculateAverage_maeda6uiui.java class CalculateAverage_maeda6uiui (line 27) | public class CalculateAverage_maeda6uiui { class RecordCollector (line 36) | static class RecordCollector implements Callable { method RecordCollector (line 49) | public RecordCollector( method byteToInt (line 69) | private int byteToInt(byte b) { method parseDouble (line 85) | private double parseDouble(byte[] bs) { method call (line 132) | @Override method round (line 330) | private static double round(double d) { method main (line 334) | public static void main(String[] args) { FILE: src/main/java/dev/morling/onebrc/CalculateAverage_mahadev_k.java class CalculateAverage_mahadev_k (line 32) | public class CalculateAverage_mahadev_k { method round (line 38) | private static double round(double value) { class MeasurementAggregator (line 42) | private static class MeasurementAggregator { method accept (line 45) | public synchronized void accept(double value) { method min (line 54) | public double min() { method max (line 58) | public double max() { method avg (line 62) | public double avg() { method main (line 67) | public static void main(String[] args) throws IOException { method readAndProcess (line 73) | public static void readAndProcess(int chunkSize) { method processData (line 120) | public static void processData(String dataBlock) { method processMinMaxMean (line 130) | private static void processMinMaxMean(String station, double temp) { method print (line 140) | public static void print() throws UnsupportedEncodingException { FILE: src/main/java/dev/morling/onebrc/CalculateAverage_makohn.java class CalculateAverage_makohn (line 36) | public class CalculateAverage_makohn { class Measurement (line 40) | private static class Measurement implements Comparable { method Measurement (line 47) | Measurement(String city, int val) { method toString (line 54) | @Override method round (line 59) | private double round(double value) { method compareTo (line 63) | @Override method toInt (line 82) | private static int toInt(byte[] in, int offset) { class ResultMap (line 106) | private static class ResultMap { method put (line 111) | private void put(int hash, Measurement measurement) { method contains (line 117) | private boolean contains(int hash) { method get (line 121) | private Measurement get(int hash) { method linearProbe (line 134) | private static int linearProbe(ResultMap res, String key) { method quickSort (line 143) | private static void quickSort(Measurement[] arr, int begin, int end) { method partition (line 152) | private static int partition(Measurement[] arr, int begin, int end) { method getChunks (line 172) | private static Collection getChunks(MemorySegment memory, ... method processChunk (line 200) | private static ResultMap processChunk(ByteBuffer chunk) { method main (line 243) | public static void main(String[] args) throws Exception { FILE: src/main/java/dev/morling/onebrc/CalculateAverage_manishgarg90.java class CalculateAverage_manishgarg90 (line 31) | public class CalculateAverage_manishgarg90 { method main (line 36) | public static void main(String[] args) throws IOException { method readBufferAndCalculateMeauremenst (line 62) | private static Map readBufferAndCalculateMeauremenst(Lis... method getEndPosition (line 105) | private static long getEndPosition(FileChannel channel, long position)... class Stat (line 119) | private static final class Stat { method Stat (line 128) | public Stat() { method Stat (line 132) | public Stat(Double value) { method update (line 139) | private void update(Double value) { method merge (line 146) | private void merge(Map result) { method getResultMap (line 156) | public Map getResultMap() { method round (line 160) | private double round(double value) { method toString (line 164) | @Override FILE: src/main/java/dev/morling/onebrc/CalculateAverage_martin2038.java class CalculateAverage_martin2038 (line 31) | public class CalculateAverage_martin2038 { class MeasurementAggregator (line 37) | private static class MeasurementAggregator { method update (line 43) | void update(int temp) { method update (line 47) | void update(int cnt, long sm, int min, int max) { method merge (line 58) | void merge(MeasurementAggregator it) { method toString (line 62) | public String toString() { method main (line 68) | public static void main(String[] args) throws IOException { method reduceMap (line 114) | static HashMap reduceMap(HashMap void add2map(Map map, Key nam... method split (line 141) | static List split(RandomAccessFile file) throws IOException { method readNextHashKey (line 169) | static StrFastHashKey readNextHashKey(byte[] buf, MappedByteBuffer mb) { method readNextString (line 179) | static String readNextString(byte[] buf, MappedByteBuffer mb) { method readNextInt10Times (line 192) | static int readNextInt10Times(byte[] buf, MappedByteBuffer mb) { class StrFastHashKey (line 237) | static class StrFastHashKey implements Comparable { method StrFastHashKey (line 243) | StrFastHashKey(byte[] buf, int size) { method equals (line 251) | @Override method hashCode (line 259) | @Override method toString (line 264) | @Override method compareTo (line 272) | @Override method calculateHash (line 294) | private static int calculateHash(byte[] buffer, int startPosition, int... method hashFNV1a (line 328) | public static int hashFNV1a(byte[] data, int length) { FILE: src/main/java/dev/morling/onebrc/CalculateAverage_mattiz.java class CalculateAverage_mattiz (line 29) | public class CalculateAverage_mattiz { method main (line 35) | public static void main(String[] args) throws Exception { method calculate (line 40) | StationList calculate(String file, int numParts) throws Exception { method createBuffers (line 53) | List createBuffers(Path file, int numParts) throws IOExcep... method getBuffer (line 81) | BufferAndSize getBuffer(FileChannel fileChannel, long start, long size... method aggregate (line 97) | private StationList aggregate(ByteBuffer buffer) { method readValue (line 137) | private static int readValue(ByteBuffer buffer) { class CustomMap (line 163) | class CustomMap { method addOrUpdate (line 167) | public void addOrUpdate(byte[] stationName, int length, int hash, int ... method get (line 188) | public Station get(byte[] stationName) { method put (line 192) | public void put(byte[] stationName, Station newStation) { method findSlot (line 196) | private int findSlot(byte[] stationName) { method getHash (line 212) | private int getHash(byte[] key) { method entrySet (line 226) | public Set> entrySet() { method sorted (line 238) | public Map sorted() { class StationList (line 251) | class StationList { method update (line 254) | public void update(byte[] stationName, int length, int hash, int value) { method merge (line 258) | public StationList merge(StationList other) { method toString (line 273) | @Override class Station (line 279) | class Station { method Station (line 287) | public Station(byte[] name, int hash) { method add (line 292) | public void add(int max, int min, int sum, int count) { method add (line 299) | public void add(int value) { method merge (line 306) | public void merge(Station other) { method toString (line 313) | public String toString() { method getName (line 317) | public byte[] getName() { method getHash (line 321) | public int getHash() { FILE: src/main/java/dev/morling/onebrc/CalculateAverage_maximz101.java class CalculateAverage_maximz101 (line 33) | public class CalculateAverage_maximz101 { method toString (line 41) | public String toString() { method round (line 45) | private double round(double value) { class MeasurementAggregator (line 50) | private static class MeasurementAggregator { method MeasurementAggregator (line 56) | public MeasurementAggregator(double min, double max, double sum, lon... method main (line 67) | public static void main(String[] args) throws IOException { method updateResultMap (line 86) | private static void updateResultMap(Map... method computePartialAggregations (line 92) | private static Map computePartialAggreg... method getChunks (line 102) | private static List getChunks(File file, int chunksCou... method findNextEOLFrom (line 134) | private static long findNextEOLFrom(RandomAccessFile raf, long current... method process (line 142) | private static Map process(MappedByteBu... method parseLine (line 169) | private static Measurement parseLine(byte[] lineBytes, int separatorId... method bytesToDouble (line 175) | private static double bytesToDouble(byte[] bytes, int startIdx, int en... FILE: src/main/java/dev/morling/onebrc/CalculateAverage_melgenek.java class CalculateAverage_melgenek (line 39) | public class CalculateAverage_melgenek { method main (line 62) | public static void main(String[] args) throws Throwable { method printTree (line 81) | private static String printTree(TreeMap result) { method processRange (line 100) | private static CompositeTable processRange(long startOffset, long maxO... method processChunk (line 111) | private static void processChunk(BufferedFile file, CompositeTable tab... method processOneRow (line 125) | private static int processOneRow(BufferedFile file, CompositeTable tab... method parseValue (line 137) | private static short parseValue(BufferedFile file) { method findDelimiter (line 162) | private static int findDelimiter(BufferedFile file, int startPosition,... method keepLastBytes (line 180) | private static long keepLastBytes(long value, int numBytesToKeep) { method longToString (line 192) | private static String longToString(long value) { class CompositeTable (line 207) | private static final class CompositeTable { method add (line 211) | private void add(byte[] buffer, int stringStart, int stringEnd, shor... method addRows (line 223) | public void addRows(TreeMap result) { method calculateHash (line 233) | private static int calculateHash(byte[] buffer, int startPosition, int... method calculateLongHash (line 255) | private static int calculateLongHash(long str) { class LongTable (line 264) | private static final class LongTable { method add (line 275) | public void add(long str, short value) { method addWithProbing (line 291) | private void addWithProbing(long str, short value, int bucketIdx) { method addRows (line 318) | public void addRows(TreeMap result) { method createBucket (line 342) | private void createBucket(int bucketIdx, long str, short value) { method updateBucket (line 349) | private void updateBucket(int bucketIdx, short value) { class RegularTable (line 372) | private static final class RegularTable { method add (line 377) | public void add(byte[] data, int start, int stringLength, int hash, ... method addWithProbing (line 392) | private void addWithProbing(byte[] data, int start, int stringLength... method addRows (line 411) | public void addRows(TreeMap result) { class Bucket (line 427) | private static final class Bucket { method Bucket (line 435) | Bucket(byte[] data, int start, int stringLength, int hash, short v... method update (line 442) | public void update(short value) { method isEqual (line 451) | public boolean isEqual(byte[] data, int start, int length) { class ResultRow (line 485) | private static class ResultRow { method ResultRow (line 491) | public ResultRow(long sum, int count, short min, short max) { method add (line 498) | public void add(long anotherSum, int anotherCount, short anotherMin,... method appendToStringBuffer (line 507) | public void appendToStringBuffer(StringBuilder sb) { class BufferedFile (line 520) | private static final class BufferedFile implements AutoCloseable { method BufferedFile (line 529) | private BufferedFile(long startOffset, long maxOffset) throws IOExce... method refillBuffer (line 535) | private void refillBuffer() throws IOException { method close (line 545) | @Override FILE: src/main/java/dev/morling/onebrc/CalculateAverage_merykitty.java class CalculateAverage_merykitty (line 34) | public class CalculateAverage_merykitty { class Aggregator (line 42) | private static class Aggregator { method toString (line 49) | public String toString() { method round (line 53) | private double round(double value) { class PoorManMap (line 59) | private static class PoorManMap { method PoorManMap (line 72) | PoorManMap() { method observe (line 77) | void observe(Aggregator node, long value) { method indexSimple (line 88) | Aggregator indexSimple(MemorySegment data, long offset, int size) { method insertInto (line 112) | Aggregator insertInto(int bucket, MemorySegment data, long offset, i... method mergeInto (line 120) | void mergeInto(Map target) { method hash (line 142) | static int hash(int x, int y) { method keyEqualScalar (line 148) | private boolean keyEqualScalar(int bucket, MemorySegment data, long ... method parseDataPoint (line 169) | private static long parseDataPoint(PoorManMap aggrMap, Aggregator node... method parseDataPointSimple (line 198) | private static long parseDataPointSimple(PoorManMap aggrMap, Aggregato... method iterate (line 225) | private static long iterate(PoorManMap aggrMap, MemorySegment data, lo... method findOffset (line 278) | private static long findOffset(MemorySegment data, long offset, long l... method processFile (line 293) | private static PoorManMap processFile(MemorySegment data, long offset,... method main (line 350) | public static void main(String[] args) throws InterruptedException, IO... FILE: src/main/java/dev/morling/onebrc/CalculateAverage_merykittyunsafe.java class CalculateAverage_merykittyunsafe (line 36) | public class CalculateAverage_merykittyunsafe { class Aggregator (line 55) | private static class Aggregator { method toString (line 61) | public String toString() { method round (line 65) | private double round(double value) { class PoorManMap (line 71) | private static class PoorManMap { method PoorManMap (line 88) | PoorManMap() { method observe (line 92) | void observe(long entryOffset, long value) { method indexSimple (line 106) | long indexSimple(long address, int size) { method insertInto (line 131) | void insertInto(long entryOffset, long address, int size) { method mergeInto (line 143) | void mergeInto(Map target) { method hash (line 166) | static int hash(int x, int y) { method keyEqualScalar (line 172) | private boolean keyEqualScalar(long entryOffset, long address, int s... method parseDataPoint (line 194) | private static long parseDataPoint(PoorManMap aggrMap, long entryOffse... method parseDataPointSimple (line 226) | private static long parseDataPointSimple(PoorManMap aggrMap, long entr... method iterate (line 253) | private static long iterate(PoorManMap aggrMap, long address) { method findOffset (line 312) | private static long findOffset(long base, long offset, long limit) { method processFile (line 327) | private static PoorManMap processFile(MemorySegment data, long offset,... method main (line 391) | public static void main(String[] args) throws InterruptedException, IO... FILE: src/main/java/dev/morling/onebrc/CalculateAverage_moysesb.java class CalculateAverage_moysesb (line 34) | public class CalculateAverage_moysesb { class ByteArray (line 38) | static class ByteArray { method ByteArray (line 42) | private ByteArray(byte[] val, int hashCode) { method equals (line 47) | @Override method hashCode (line 55) | @Override method main (line 63) | public static void main(String[] args) throws IOException, ExecutionEx... method round (line 198) | private static double round(double d) { FILE: src/main/java/dev/morling/onebrc/CalculateAverage_mtopolnik.java class CalculateAverage_mtopolnik (line 35) | public class CalculateAverage_mtopolnik { method unsafe (line 42) | private static Unsafe unsafe() { method main (line 53) | public static void main(String[] args) throws Exception { method calculate (line 72) | static void calculate() throws Exception { class ChunkProcessor (line 104) | private static class ChunkProcessor implements Runnable { method ChunkProcessor (line 114) | ChunkProcessor(long chunkStart, long chunkLimit, StationStats[][] re... method run (line 121) | @Override method processChunk (line 140) | private void processChunk() { method semicolonMatchBits (line 213) | private static long semicolonMatchBits(long word) { method maskWord (line 219) | private static long maskWord(long word, long matchBits) { method dotPos (line 225) | private static int dotPos(long word) { method parseTemperature (line 230) | private static int parseTemperature(long word, int dotPos) { method nameLen (line 238) | private static int nameLen(long separator) { method hash (line 242) | private static long hash(long word) { method exportResults (line 247) | private void exportResults() { class StatsAccessor (line 273) | static class StatsAccessor { method StatsAccessor (line 289) | StatsAccessor(MemorySegment memSeg) { method gotoIndex (line 294) | void gotoIndex(int index) { method gotoName0 (line 298) | private boolean gotoName0(long hash, long nameWord0) { method gotoName1 (line 303) | private boolean gotoName1(long hash, long nameWord0, long nameWord1) { method hash (line 308) | long hash() { method nameLen (line 312) | int nameLen() { method sum (line 316) | int sum() { method count (line 320) | int count() { method min (line 324) | short min() { method max (line 328) | short max() { method nameAddress (line 332) | long nameAddress() { method nameWord0 (line 336) | long nameWord0() { method nameWord1 (line 340) | long nameWord1() { method exportNameString (line 344) | String exportNameString() { method setHash (line 350) | void setHash(long hash) { method setNameLen (line 354) | void setNameLen(int nameLen) { method setSum (line 358) | void setSum(int sum) { method setCount (line 362) | void setCount(int count) { method setMin (line 366) | void setMin(short min) { method setMax (line 370) | void setMax(short max) { method gotoAndObserve (line 374) | void gotoAndObserve( method initialize (line 394) | void initialize(long hash, long nameLen, long nameStartAddress, int ... method observe (line 404) | void observe(int temperature) { method nameEquals (line 411) | private static boolean nameEquals( method mergeSortAndPrint (line 428) | private static void mergeSortAndPrint(StationStats[][] results) { class StationStats (line 480) | static class StationStats implements Comparable { method toString (line 487) | @Override method equals (line 492) | @Override method compareTo (line 497) | @Override method longToString (line 503) | private static String longToString(long word) { FILE: src/main/java/dev/morling/onebrc/CalculateAverage_muditsaxena.java class CalculateAverage_muditsaxena (line 34) | public class CalculateAverage_muditsaxena { method Measurement (line 39) | private Measurement(String[] parts) { method toString (line 45) | public String toString() { method round (line 49) | private double round(double value) { class MeasurementAggregator (line 54) | private static class MeasurementAggregator { class TaskRunner (line 61) | static class TaskRunner implements Callable { method TaskRunner (line 66) | TaskRunner(List taskList) { method TaskRunner (line 70) | TaskRunner(String input) { method readInput (line 74) | String[] readInput(String inputTask) { method call (line 91) | @Override method main (line 123) | public static void main(String[] args) throws IOException { FILE: src/main/java/dev/morling/onebrc/CalculateAverage_naive.java class CalculateAverage_naive (line 24) | public class CalculateAverage_naive { method main (line 29) | public static void main(String[] args) throws FileNotFoundException { FILE: src/main/java/dev/morling/onebrc/CalculateAverage_netrunnereve.java class CalculateAverage_netrunnereve (line 29) | public class CalculateAverage_netrunnereve { class MeasurementAggregator (line 37) | private static class MeasurementAggregator { // min, max, sum stored a... class ThreadCalcs (line 46) | private static class ThreadCalcs { method calc_hash (line 53) | private static int calc_hash(byte[] input, int len) { class ThreadedParser (line 61) | private static class ThreadedParser extends Thread { method ThreadedParser (line 68) | private ThreadedParser(MappedByteBuffer mbuf, int mbs, ThreadCalcs[]... method run (line 76) | public void run() { method main (line 176) | public static void main(String[] args) { FILE: src/main/java/dev/morling/onebrc/CalculateAverage_obourgain.java class CalculateAverage_obourgain (line 38) | public class CalculateAverage_obourgain { class ThreadLocalState (line 44) | static class ThreadLocalState { class MeasurementAggregator (line 82) | static class MeasurementAggregator { method appendTo (line 89) | public void appendTo(StringBuilder stringBuilder) { method round (line 94) | private double round(double value) { method reset (line 98) | public void reset() { method add (line 105) | void add(int measurementInDeciCelsius) { method main (line 116) | public static void main(String[] args) throws Exception { method printEntry (line 161) | private static void printEntry(List entries, int... method processChunk (line 171) | private static void processChunk(MemorySegment segment, ThreadLocalSta... method processLineInChunk (line 181) | private static long processLineInChunk(MemorySegment segment, long pos... method getCityNameLength (line 196) | static long getCityNameLength(MemorySegment segment, long position, Th... method decodeDouble (line 256) | private static long decodeDouble(MemorySegment segment, long position,... method readBigEndianInt (line 297) | private static int readBigEndianInt(MemorySegment segment, long positi... method readByte (line 308) | private static byte readByte(MemorySegment segment, long position) { class KeyWrapper (line 316) | static final class KeyWrapper implements Comparable { method KeyWrapper (line 320) | KeyWrapper(byte[] key, int keyHashCode) { method hashCode (line 325) | @Override method equals (line 330) | @Override method compareTo (line 337) | @Override method toString (line 342) | @Override method merge (line 348) | private static void merge(ConcurrentHashMap ... method getOrCreate (line 421) | public MeasurementAggregator getOrCreate(ThreadLocalState threadLoca... method create (line 442) | private MeasurementAggregator create(int cityNameLength, byte[] city... method arrayEquals (line 454) | static boolean arrayEquals(byte[] existingKey, byte[] cityNameBuffer, ... FILE: src/main/java/dev/morling/onebrc/CalculateAverage_omarchenko4j.java class CalculateAverage_omarchenko4j (line 35) | public class CalculateAverage_omarchenko4j { method main (line 40) | public static void main(String[] args) throws IOException, Interrupted... method sliceIntoTasks (line 69) | private static List sliceIntoTasks(MemorySegment segment) { class Task (line 97) | private static class Task implements Callable> { method Task (line 105) | private Task(MemorySegment segment, long startOffset, long endOffset) { method call (line 111) | @Override method getDouble (line 148) | private double getDouble(byte[] buffer, int offset, int length) { class Aggregator (line 180) | public static class Aggregator { method addValue (line 186) | public void addValue(double value) { method merge (line 193) | public void merge(Aggregator aggregator) { method toString (line 204) | @Override method round (line 209) | private double round(double value) { FILE: src/main/java/dev/morling/onebrc/CalculateAverage_padreati.java class CalculateAverage_padreati (line 34) | public class CalculateAverage_padreati { method toString (line 41) | public String toString() { method round (line 45) | private double round(double value) { method MeasurementAggregator (line 52) | public MeasurementAggregator(double seed) { method merge (line 56) | public MeasurementAggregator merge(MeasurementAggregator b) { method toResultRow (line 65) | public ResultRow toResultRow() { method main (line 70) | public static void main(String[] args) throws IOException { method run (line 74) | private void run() throws IOException { method findFileSplits (line 97) | private List findFileSplits() throws IOException { method chunkProcessor (line 132) | public Map chunkProcessor(File source, ... method collapseResults (line 183) | private TreeMap collapseResults(List chunk(fi... method parseChunk (line 89) | private static ByteArrayKeyedMap parseChunk(ThreadChunk chunk, FileCha... method parseData (line 101) | private static void parseData(final FileChannel channel, class State (line 150) | private static final class State { method reset (line 159) | public void reset() { class MeasurementAggregator (line 168) | private static class MeasurementAggregator { method MeasurementAggregator (line 176) | public MeasurementAggregator(final byte[] stationNameBytes, final in... method toString (line 181) | public String toString() { method round (line 185) | private double round(final double value) { method merge (line 189) | private MeasurementAggregator merge(final MeasurementAggregator b) { class ByteArrayKeyedMap (line 205) | private static class ByteArrayKeyedMap { method computeIfAbsent (line 210) | public MeasurementAggregator computeIfAbsent(final byte[] key, final... method getAsUnorderedList (line 232) | public List getAsUnorderedList() { FILE: src/main/java/dev/morling/onebrc/CalculateAverage_parkertimmins.java class CalculateAverage_parkertimmins (line 32) | public class CalculateAverage_parkertimmins { method toString (line 36) | public String toString() { method round (line 40) | private double round(double value) { class OpenHashTable (line 45) | static class OpenHashTable { class Entry (line 46) | static class Entry { method merge (line 56) | void merge(Entry other) { method add (line 69) | void add(byte[] buf, int sLen, short val, int hash) { method eq (line 106) | static boolean eq(byte[] buf, byte[] entryKey, int sLen) { method findNextEntryStart (line 123) | static long findNextEntryStart(MemorySegment ms, long offset) { method processRangeScalar (line 144) | static void processRangeScalar(MemorySegment ms, long start, long end,... method hash (line 179) | static int hash(byte[] buf, int sLen) { method processRangeSIMD (line 190) | static void processRangeSIMD(MemorySegment ms, boolean isFirst, boolea... method mergeAggregations (line 232) | static HashMap mergeAggregations(ArrayLis... method main (line 254) | public static void main(String[] args) throws IOException, Interrupted... FILE: src/main/java/dev/morling/onebrc/CalculateAverage_pedestrianlove.java class CalculateAverage_pedestrianlove (line 27) | public class CalculateAverage_pedestrianlove { method Measurement (line 32) | private Measurement(String[] parts) { method toString (line 38) | public String toString() { method round (line 42) | private double round(double value) { class MeasurementAggregator (line 47) | private static class MeasurementAggregator { method main (line 54) | public static void main(String[] args) throws IOException { FILE: src/main/java/dev/morling/onebrc/CalculateAverage_phd3.java class CalculateAverage_phd3 (line 38) | public class CalculateAverage_phd3 { method toString (line 55) | public String toString() { method round (line 59) | private double round(double value) { method resultRow (line 64) | public static ResultRow resultRow(AggregationInfo aggregationInfo) { method main (line 68) | public static void main(String[] args) throws Exception { class AggregationInfo (line 104) | private static class AggregationInfo { method update (line 110) | public AggregationInfo update(AggregationInfo update) { method update (line 122) | public AggregationInfo update(double value) { type BufferDataProvider (line 135) | private interface BufferDataProvider { method read (line 136) | int read(byte[] buffer, long offset) throws Exception; class RandomAccessBasedProvider (line 142) | private static class RandomAccessBasedProvider implements BufferDataPr... method RandomAccessBasedProvider (line 145) | RandomAccessBasedProvider(String filePath, long fileSize) { method read (line 149) | @Override class Aggregator (line 168) | private static class Aggregator implements Callable toMap() { class Node (line 324) | private static class Node { method Node (line 328) | public Node(KeyValuePair entry, Node next) { FILE: src/main/java/dev/morling/onebrc/CalculateAverage_plbpietrz.java class CalculateAverage_plbpietrz (line 35) | public class CalculateAverage_plbpietrz { class TemperatureStats (line 41) | private static class TemperatureStats { method update (line 46) | public void update(double temp) { class WeatherStation (line 57) | private static class WeatherStation { method WeatherStation (line 63) | public WeatherStation() { method WeatherStation (line 67) | public WeatherStation(WeatherStation station) { method hashCode (line 73) | @Override method equals (line 78) | @Override method toString (line 88) | @Override method appendByte (line 95) | public void appendByte(byte b) { method clear (line 101) | public void clear() { method main (line 109) | public static void main(String[] args) throws IOException { method partitionInput (line 132) | private static List partitionInput(RandomAccessFile inputFil... method findMinBlockOffset (line 145) | private static long findMinBlockOffset(RandomAccessFile file, long sta... method getMappedByteBuffer (line 158) | private static MappedByteBuffer getMappedByteBuffer(FilePart fp, Rando... method parseBuffer (line 167) | private static Map parseBuffer(Mappe... method parseTemperature (line 224) | private static double parseTemperature(byte[] temperature, int tempera... method mergeTemperatureStats (line 245) | private static TemperatureStats mergeTemperatureStats(TemperatureStats... method formatResults (line 254) | private static void formatResults(PrintWriter pw, Map stream() { method toString (line 380) | @Override method average (line 389) | double average() { method toString (line 393) | @Override FILE: src/main/java/dev/morling/onebrc/CalculateAverage_raipc.java class CalculateAverage_raipc (line 27) | public class CalculateAverage_raipc { class AggregatedMeasurement (line 31) | private static final class AggregatedMeasurement { method AggregatedMeasurement (line 39) | private AggregatedMeasurement(ByteArrayWrapper station) { method station (line 43) | public String station() { method merge (line 51) | public AggregatedMeasurement merge(AggregatedMeasurement other) { method add (line 59) | public void add(int value) { method format (line 66) | public void format(StringBuilder out) { method main (line 74) | public static void main(String[] args) throws InterruptedException { method formatResult (line 81) | private static String formatResult(AggregatedMeasurement[] result) { class ParsingTask (line 94) | private static class ParsingTask extends RecursiveTask { method ParsingTask (line 101) | private ParsingTask(File file, long startPosition, long endPosition) { method compute (line 107) | @Override method doCompute (line 121) | private MyHashMap doCompute() { class ParsingRoutine (line 131) | private static class ParsingRoutine { method ParsingRoutine (line 139) | private ParsingRoutine(long startPosition, long endPosition) { method hasPartialContent (line 144) | private boolean hasPartialContent() { method parse (line 148) | MyHashMap parse(RandomAccessFile raf) throws IOException { method findStartOffset (line 180) | long findStartOffset(RandomAccessFile raf, byte[] buffer) throws IOE... method processPart (line 206) | boolean processPart(long position, byte[] buf, int start, int end) { method parseInt (line 233) | private int parseInt(byte[] buf, int from, int toIncl) { method indexOf (line 276) | static int indexOf(byte[] src, int ch, int fromIndex, int toIndex) { method vectorizedHashCode (line 285) | static int vectorizedHashCode(byte[] array, int fromIndex, int length) { method arraysEqual (line 294) | static boolean arraysEqual(byte[] a, int aFromIndex, byte[] b, int bFr... class ByteArrayWrapper (line 303) | private static class ByteArrayWrapper { method ByteArrayWrapper (line 309) | ByteArrayWrapper(byte[] content, int start, int length, int hashCode... method calculateHashCode (line 316) | int calculateHashCode() { method equals (line 320) | @Override method isEqualTo (line 325) | boolean isEqualTo(ByteArrayWrapper other) { method hashCode (line 329) | @Override method toString (line 334) | @Override method copy (line 339) | ByteArrayWrapper copy() { class MyHashMap (line 346) | private static class MyHashMap { method MyHashMap (line 351) | MyHashMap(int initialCapacity) { method grow (line 355) | private void grow() { method put (line 366) | private void put(AggregatedMeasurement value, AggregatedMeasurement[... method getOrCreate (line 384) | AggregatedMeasurement getOrCreate(ByteArrayWrapper key) { method doGetOrCreate (line 393) | private AggregatedMeasurement doGetOrCreate(ByteArrayWrapper key, in... method merge (line 417) | void merge(MyHashMap other) { method merge (line 425) | private boolean merge(AggregatedMeasurement value) { method doMerge (line 434) | private boolean doMerge(ByteArrayWrapper key, AggregatedMeasurement ... method toArray (line 458) | AggregatedMeasurement[] toArray() { FILE: src/main/java/dev/morling/onebrc/CalculateAverage_rby.java class CalculateAverage_rby (line 25) | public class CalculateAverage_rby { method cuts (line 34) | static long[] cuts(Path p, int workers) throws IOException { method main (line 70) | public static void main(String[] args) throws IOException { method combine (line 87) | Stats combine(Stats other) { method print (line 108) | void print() { method stats (line 136) | static Stats stats(Path p, long start, long end) { FILE: src/main/java/dev/morling/onebrc/CalculateAverage_rcasteltrione.java class CalculateAverage_rcasteltrione (line 34) | public class CalculateAverage_rcasteltrione { method main (line 38) | public static void main(String[] args) throws IOException, Interrupted... method processSegment (line 69) | private static ByteArrayToMeasurementMap processSegment(FileChannel ch... method forFile (line 141) | public static List forFile(Path file, int desiredSegments... method findSegmentBoundary (line 163) | private static long findSegmentBoundary(RandomAccessFile raf, int i, i... class Measurement (line 175) | static class Measurement { method Measurement (line 179) | private Measurement(int min, int max, long sum, int n) { method Measurement (line 186) | public Measurement(int temp) { method merge (line 190) | final Measurement merge(Measurement other) { method toString (line 198) | @Override method round (line 203) | double round(double v) { class ByteArrayToMeasurementMap (line 208) | static class ByteArrayToMeasurementMap { method mergeOrCreate (line 219) | public final void mergeOrCreate(byte[] line, int nameStart, int name... method resize (line 250) | private int resize(int hash) { method arrayEquals (line 274) | private boolean arrayEquals(byte[] storedKey, byte[] line, int nameS... method hashCode (line 287) | private static int hashCode(int h) { method entries (line 294) | public final List entries() { FILE: src/main/java/dev/morling/onebrc/CalculateAverage_ricardopieper.java class CalculateAverage_ricardopieper (line 52) | @SuppressWarnings("unchecked") class StationMeasurements (line 57) | public static final class StationMeasurements { method StationMeasurements (line 63) | public StationMeasurements( method toString (line 76) | @Override method splitFile (line 89) | public static List splitFile(Path path, int numChunks) thro... method longBytesToInt (line 130) | public static int longBytesToInt(long vector, int len) { method main (line 165) | public static void main(String[] args) throws IOException, Interrupted... method findFirstOccurrence (line 212) | private static final int findFirstOccurrence(long bytes, long pattern) { method processFileChunk (line 266) | private static MeasureMap processFileChunk(FileChunk chunk) throws IOE... class MeasureMap (line 337) | public static class MeasureMap { method longToBytes (line 342) | public static byte[] longToBytes(long vector) { method MeasureMap (line 359) | public MeasureMap() { method hashCode (line 370) | public static int hashCode(byte[] array, int offset, int length) { method equals (line 378) | public boolean equals(byte[] a1, int a1offset, int a1len, byte[] a2) { method getOrAdd (line 394) | public StationMeasurements getOrAdd(byte[] bytes, long nameVector, i... method asTreeMap (line 435) | public TreeMap asTreeMap() { FILE: src/main/java/dev/morling/onebrc/CalculateAverage_richardstartin.java class CalculateAverage_richardstartin (line 34) | public class CalculateAverage_richardstartin { method toString (line 39) | public String toString() { method round (line 43) | private double round(double value) { method newAggregates (line 50) | private static int[] newAggregates(int stripes) { method Slot (line 58) | Slot(byte[] key, int stripes) { method update (line 62) | void update(int stripe, int value) { method toResultRow (line 70) | public ResultRow toResultRow() { method toKey (line 84) | public String toKey() { class Dictionary (line 90) | public static class Dictionary { method forEach (line 101) | private void forEach(Table table, Consumer consumer) { method forEach (line 113) | public void forEach(Consumer consumer) { method lookup (line 117) | public Slot lookup(int hash, byte[] key, int length, int stripes) { method nextBaseIndex (line 143) | private int nextBaseIndex() { class Row (line 147) | private static final class Row { method Row (line 155) | private Row(Dictionary dictionary) { method getOrCreateNextTable (line 159) | public Table getOrCreateNextTable() { method compareAndSet (line 173) | public boolean compareAndSet(Slot expected, Slot newSlot) { class Table (line 178) | private static final class Table { method Table (line 183) | private Table(Dictionary dictionary, int baseIndex) { method compilePattern (line 191) | private static long compilePattern(long repeat) { method compilePattern (line 195) | private static long compilePattern(byte delimiter) { method findLastNewLine (line 201) | private static int findLastNewLine(ByteBuffer buffer) { method findLastNewLine (line 205) | private static int findLastNewLine(ByteBuffer buffer, int offset) { method findIndexOf (line 214) | private static int findIndexOf(ByteBuffer buffer, int limit, int offse... method hash (line 234) | private static int hash(byte[] bytes, int limit) { class AggregationTask (line 242) | private static class AggregationTask extends RecursiveAction { method AggregationTask (line 249) | private AggregationTask(Dictionary dictionary, List slic... method AggregationTask (line 253) | private AggregationTask(Dictionary dictionary, List slic... method computeSlice (line 260) | private void computeSlice(int stripe) { method compute (line 288) | @Override method main (line 304) | public static void main(String[] args) throws IOException { FILE: src/main/java/dev/morling/onebrc/CalculateAverage_roman_r_m.java class CalculateAverage_roman_r_m (line 30) | public class CalculateAverage_roman_r_m { method broadcast (line 36) | private static long broadcast(byte b) { method applyPattern (line 51) | private static long applyPattern(final long word, final long pattern) { method nextNewline (line 57) | static long nextNewline(long from, MemorySegment ms) { method hashFull (line 68) | static int hashFull(long word) { method hashPartial (line 72) | static int hashPartial(long word, int bytes) { method main (line 77) | public static void main(String[] args) throws Exception { class ByteString (line 202) | static final class ByteString { method ByteString (line 210) | ByteString(MemorySegment ms) { method asString (line 214) | public String asString(byte[] reusable) { method copy (line 219) | public ByteString copy() { method equals (line 228) | @Override method hashCode (line 250) | @Override method toString (line 255) | @Override class ResultRow (line 262) | private static final class ResultRow { method ResultRow (line 268) | public ResultRow(int[] values) { method toString (line 275) | public String toString() { method round (line 279) | private double round(double value) { method merge (line 283) | public ResultRow merge(ResultRow other) { class ResultStore (line 292) | static class ResultStore { method update (line 297) | void update(ByteString s, int value) { method toMap (line 329) | TreeMap toMap() { FILE: src/main/java/dev/morling/onebrc/CalculateAverage_royvanrijn.java class CalculateAverage_royvanrijn (line 75) | public class CalculateAverage_royvanrijn { method spawnWorker (line 113) | private static void spawnWorker() throws IOException { method main (line 128) | public static void main(String[] args) throws Exception { method fillEntry (line 193) | private static byte[] fillEntry(final byte[] entry, final long fromAdd... method fillEntry16 (line 205) | private static byte[] fillEntry16(final byte[] entry, final int entryL... method updateEntry (line 216) | public static void updateEntry(final byte[] entry, final int temp) { method mergeEntry (line 233) | public static byte[] mergeEntry(final byte[] entry, final byte[] merge) { method entryToName (line 255) | private static String entryToName(final byte[] entry) { method entryValuesToString (line 266) | private static String entryValuesToString(final byte[] entry) { method printMemory (line 277) | private static String printMemory(final Object target, final long addr... method printMemory (line 287) | private static String printMemory(final long value, int length) { method round (line 295) | private static double round(final double value) { class Reader (line 299) | private static final class Reader { method Reader (line 311) | Reader(final long startAddress, final long endAddress, final boolean... method processStart (line 327) | private void processStart() { method hasNext (line 333) | private boolean hasNext() { method readNext (line 339) | private boolean readNext() { method processEndAndGetTemperature (line 390) | private int processEndAndGetTemperature() { method finalizeHash (line 395) | private void finalizeHash() { method readTemperature (line 403) | private int readTemperature() { method matches (line 426) | private boolean matches(final byte[] entry) { method matches16 (line 444) | private boolean matches16(final byte[] entry) { method processMemoryArea (line 455) | private static byte[][] processMemoryArea(final long startAddress, fin... method compare (line 525) | private static boolean compare(final Object object1, final long addres... method compare (line 529) | private static boolean compare(final long value1, final Object object2... method initUnsafe (line 543) | private static Unsafe initUnsafe() { FILE: src/main/java/dev/morling/onebrc/CalculateAverage_rprabhu.java class CalculateAverage_rprabhu (line 32) | public class CalculateAverage_rprabhu { method Measurement (line 37) | private Measurement(String[] parts) { method toString (line 43) | public String toString() { method round (line 47) | private double round(double value) { class MeasurementAggregator (line 52) | private static class MeasurementAggregator { class TaskExecutor (line 63) | private static class TaskExecutor implements Runnable { method TaskExecutor (line 66) | TaskExecutor(List list) { method run (line 70) | @Override class TaskScheduler (line 91) | private static class TaskScheduler { method TaskScheduler (line 95) | TaskScheduler(ExecutorService executor) { method push (line 99) | void push(String line) { method completeRemaining (line 108) | void completeRemaining() { method main (line 118) | public static void main(String[] args) throws IOException, Interrupted... FILE: src/main/java/dev/morling/onebrc/CalculateAverage_santanu.java class CalculateAverage_santanu (line 30) | public class CalculateAverage_santanu { method main (line 34) | public static void main(String[] args) throws IOException { method processMeasurements (line 46) | private static Map processMeasurement... method printResults (line 52) | private static void printResults(Map ... FILE: src/main/java/dev/morling/onebrc/CalculateAverage_seijikun.java class CalculateAverage_seijikun (line 34) | public class CalculateAverage_seijikun { class MeasurementAggregator (line 38) | private static class MeasurementAggregator { method finish (line 47) | public void finish() { method printInto (line 52) | public void printInto(PrintStream out) { class StationIdent (line 59) | public static class StationIdent { method StationIdent (line 63) | public StationIdent(byte[] name, int nameHash) { method hashCode (line 68) | @Override method equals (line 73) | @Override class ChunkReader (line 83) | public static class ChunkReader implements Runnable { method ChunkReader (line 98) | public ChunkReader(RandomAccessFile file, long startOffset, long end... method readStationName (line 118) | private StationIdent readStationName() { method readTemperature (line 152) | private int readTemperature() { method run (line 171) | @Override method printWorkSet (line 203) | private static void printWorkSet(TreeMap values() { FILE: src/main/java/dev/morling/onebrc/CalculateAverage_serkan_ozal.java class CalculateAverage_serkan_ozal (line 51) | public class CalculateAverage_serkan_ozal { method main (line 96) | public static void main(String[] args) throws Exception { method getBooleanConfig (line 192) | private static boolean getBooleanConfig(String envVarName, boolean def... method getIntegerConfig (line 202) | private static int getIntegerConfig(String envVarName, int defaultValu... method getByteBuffer (line 212) | private static ByteBuffer getByteBuffer(int size) { method findClosestLineEnd (line 218) | private static long findClosestLineEnd(FileChannel fc, long endPos, By... method createRegionProcessor (line 229) | private static RegionProcessor createRegionProcessor(Request request) { class RegionProcessorThreadFactory (line 233) | private static class RegionProcessorThreadFactory implements ThreadFac... method newThread (line 235) | @Override class RegionProcessor (line 248) | private static class RegionProcessor implements Callable { method RegionProcessor (line 255) | private RegionProcessor(Request request) { method call (line 261) | @Override method processRegion (line 277) | private void processRegion() throws Exception { method findClosestLineEnd (line 337) | private long findClosestLineEnd(long endPos, long minPos) { method extractValue (line 347) | private long extractValue(long regionPtr, long word, OpenMap map, in... method doProcessRegion (line 370) | private void doProcessRegion(long regionStart, long regionEnd) { method doProcessTail (line 487) | private void doProcessTail(long regionPtr1, long regionEnd1, long re... class Task (line 539) | private static final class Task { method Task (line 547) | private Task(FileChannel fileChannel, MemorySegment region, long sta... class Request (line 560) | private static final class Request { method Request (line 566) | private Request(Arena arena, Queue sharedTasks, Result result) { class Response (line 577) | private static final class Response { method Response (line 581) | private Response(OpenMap map) { class KeyResult (line 590) | private static final class KeyResult { method KeyResult (line 597) | private KeyResult(int count, int minValue, int maxValue, long sum) { method merge (line 604) | private void merge(KeyResult result) { method toString (line 611) | @Override method round (line 616) | private double round(double value) { class Result (line 625) | private static final class Result { method Result (line 630) | private Result() { method tryMergeInto (line 634) | private boolean tryMergeInto(OpenMap map) { method mergeInto (line 648) | private void mergeInto(OpenMap map) { method print (line 659) | private void print() { class OpenMap (line 681) | private static final class OpenMap { method OpenMap (line 718) | private OpenMap() { method calculateEntryIndex (line 726) | private int calculateEntryIndex(long address, int keyLength) { method putKey (line 742) | private int putKey(ByteVector keyVector, long keyStartAddress, int k... method keysEqual (line 767) | private boolean keysEqual(ByteVector keyVector, long keyStartAddress... method putValue (line 809) | private void putValue(int entryOffset, int value) { method merge (line 825) | private void merge(Map resultMap) { FILE: src/main/java/dev/morling/onebrc/CalculateAverage_shipilev.java class CalculateAverage_shipilev (line 32) | public class CalculateAverage_shipilev { method get (line 101) | @Override class Bucket (line 121) | public static final class Bucket { method Bucket (line 135) | public Bucket(ByteBuffer slice, int begin, int end, int hash, int te... method matches (line 173) | public boolean matches(ByteBuffer cand, int begin, int end) { method matches (line 208) | public boolean matches(Bucket other) { method merge (line 216) | public void merge(int value) { method merge (line 232) | public void merge(Bucket s) { method toRow (line 239) | public Row toRow() { class MeasurementsMap (line 261) | public static final class MeasurementsMap { method updateSlow (line 273) | private void updateSlow(ByteBuffer name, int begin, int end, int has... method merge (line 297) | public void merge(MeasurementsMap otherMap) { method fill (line 322) | public int fill(Row[] rows) { class ParsingTask (line 336) | public static final class ParsingTask extends CountedCompleter { method ParsingTask (line 342) | public ParsingTask(CountedCompleter p, MappedByteBuffer mapped... method ParsingTask (line 349) | public ParsingTask(CountedCompleter p, ByteBuffer buf) { method compute (line 355) | @Override method onCompletion (line 367) | @Override method internalCompute (line 378) | private void internalCompute() throws Exception { method seqCompute (line 423) | private void seqCompute(MeasurementsMap map, ByteBuffer origSlice, i... class RootTask (line 521) | public static final class RootTask extends CountedCompleter { method RootTask (line 522) | public RootTask() { method compute (line 526) | @Override method internalCompute (line 538) | private void internalCompute() throws Exception { method onCompletion (line 578) | @Override method main (line 594) | public static void main(String[] args) throws Exception { method report (line 630) | private static String report(MeasurementsMap map, Row[] rows, StringBu... class Row (line 648) | private static final class Row implements Comparable { method Row (line 654) | public Row(String name, double min, double avg, double max) { method compareTo (line 661) | @Override method printTo (line 666) | public void printTo(StringBuilder sb) { class DirectUnmaps (line 681) | public static class DirectUnmaps { method getCleaner (line 685) | static Method getCleaner() { method getCleanerClean (line 697) | static Method getCleanerClean(Method methodGetCleaner) { method invokeCleaner (line 716) | public static void invokeCleaner(ByteBuffer bb) { FILE: src/main/java/dev/morling/onebrc/CalculateAverage_slovdahl.java class CalculateAverage_slovdahl (line 40) | public class CalculateAverage_slovdahl { method main (line 46) | public static void main(String[] args) throws IOException, ExecutionEx... method nextOccurrence (line 219) | private static int nextOccurrence(byte[] data, byte needle, int offset) { method Station (line 230) | private Station(byte[] name) { method equals (line 234) | @Override method hashCode (line 246) | @Override method toString (line 251) | @Override class MeasurementAggregator (line 260) | private static class MeasurementAggregator { method toString (line 269) | @Override method round (line 274) | private double round(double value) { FILE: src/main/java/dev/morling/onebrc/CalculateAverage_spullara.java class CalculateAverage_spullara (line 32) | public class CalculateAverage_spullara { method main (line 44) | public static void main(String[] args) throws IOException, ExecutionEx... method getFileSegments (line 100) | private static List getFileSegments(File file) throws IOE... method merge (line 123) | private static Result merge(Result v, Result value) { method merge (line 127) | private static Result merge(Result v, double value, double value1, dou... method findSegment (line 135) | private static long findSegment(int i, int skipSegment, RandomAccessFi... class Result (line 148) | class Result { method Result (line 152) | Result(double value) { method toString (line 157) | @Override method round (line 162) | double round(double v) { class ByteArrayToResultMap (line 174) | class ByteArrayToResultMap { method putOrMerge (line 179) | public void putOrMerge(byte[] key, int offset, int size, double temp, ... method getAll (line 202) | public List getAll() { FILE: src/main/java/dev/morling/onebrc/CalculateAverage_stephenvonworley.java class CalculateAverage_stephenvonworley (line 58) | public class CalculateAverage_stephenvonworley { method main (line 92) | public static void main(String[] args) throws IOException, Interrupted... method spawnWorker (line 108) | private static void spawnWorker() throws IOException { method processorCount (line 118) | private static int processorCount() { method map (line 122) | private static MemorySegment map(String path) throws IOException { method allocate (line 127) | private static MemorySegment allocate(long len) { method partition (line 131) | private static Queue partition(MemorySegment in) throws IOExcep... method process (line 159) | private static List process(Queue chunks, int threadCoun... method aggregate (line 180) | private static Map aggregate(List
tables) { method aggregate (line 186) | private static void aggregate(Map nameToTally, Table ta... method parse3 (line 190) | private static void parse3(long start, long end, Table table) { method parse1 (line 245) | private static void parse1(long start, long end, Table table) { method remaining (line 257) | private static long remaining(long start, long end) { method semicolon (line 262) | private static long semicolon(long start) { method trim (line 281) | private static long trim(long value, long remove) { method locate (line 287) | private static long locate(long start, long semicolon, long tallies, T... method init (line 336) | private static void init(long tally, long start, long len, Table t) { method match (line 344) | private static boolean match(long tally, long name, long len) { method number (line 365) | private static long number(long semicolon) { method tally (line 381) | private static void tally(long tally, long number) { method next (line 396) | private static long next(long semicolon) { method afterNewline (line 404) | private static long afterNewline(long start) { method min (line 410) | private static long min(long a, long b, long c) { method getByte (line 414) | private static byte getByte(long addr) { method getShort (line 418) | private static short getShort(long addr) { method getInt (line 422) | private static int getInt(long addr) { method getLong (line 426) | private static long getLong(long addr) { method setByte (line 430) | private static void setByte(long addr, byte value) { method setShort (line 434) | private static void setShort(long addr, short value) { method setInt (line 438) | private static void setInt(long addr, int value) { method setLong (line 442) | private static void setLong(long addr, long value) { method copyMemory (line 446) | private static void copyMemory(long srcAddr, long dstAddr, long count) { class Table (line 453) | private static class Table { method Table (line 458) | public Table() { method process (line 464) | public void process(Consumer consumer) { type Consumer (line 482) | private static interface Consumer { method consume (line 483) | public void consume(String name, long min, long max, long total, lon... class Tally (line 486) | private static class Tally { method Tally (line 493) | public Tally() { method add (line 500) | public void add(long addMin, long addMax, long addTotal, long addCou... method getMin (line 507) | public long getMin() { method getMax (line 511) | public long getMax() { method getTotal (line 515) | public long getTotal() { method getCount (line 519) | public long getCount() { method toString (line 523) | public String toString() { FILE: src/main/java/dev/morling/onebrc/CalculateAverage_sudhirtumati.java class CalculateAverage_sudhirtumati (line 29) | public class CalculateAverage_sudhirtumati { method main (line 41) | public static void main(String[] args) throws IOException, Interrupted... method chunkProcess (line 46) | private void chunkProcess() throws IOException, InterruptedException { class ChunkProcessingThread (line 62) | static class ChunkProcessingThread extends Thread { method ChunkProcessingThread (line 68) | ChunkProcessingThread(int index, FileChannel fc) { method run (line 74) | @Override method processBuffer (line 102) | private void processBuffer(ByteBuffer buffer) throws IOException { method seekStartPos (line 123) | private void seekStartPos(ByteBuffer buffer) { class MeasurementAggregator (line 134) | static final class MeasurementAggregator { method process (line 138) | public void process(MeasurementAggregator other) { method process (line 149) | public void process(byte[] location, byte[] temperature) throws IOEx... method parseDouble (line 162) | public double parseDouble(byte[] bytes) { method asDouble (line 196) | private static double asDouble(long value, int exp, boolean negative... method getResult (line 252) | public String getResult() { class Measurement (line 259) | static final class Measurement { method process (line 265) | public void process(double value) { method process (line 276) | public void process(Measurement other) { method toString (line 287) | public String toString() { method toString (line 295) | public String toString() { method round (line 299) | private double round(double value) { FILE: src/main/java/dev/morling/onebrc/CalculateAverage_thanhtrinity.java class CalculateAverage_thanhtrinity (line 37) | public class CalculateAverage_thanhtrinity { method main (line 42) | public static void main(String[] args) throws IOException, Interrupted... method adjustBreakLinePosition (line 89) | private static long adjustBreakLinePosition(long position) throws IOEx... method processBufferData (line 100) | private static ChunkData processBufferData(MappedByteBuffer buffer, lo... method consolidateData (line 188) | private static void consolidateData(ChunkData[] citiesTempChunk) { class City (line 204) | class City { method City (line 212) | public City() { method City (line 215) | public City(byte[] name) { method updateTemp (line 219) | public void updateTemp(double temp) { method getKey (line 226) | public String getKey() { method combine (line 235) | public static City combine(City t1, City t2) { method toString (line 244) | @Override method setName (line 249) | public void setName(byte[] name) { method getName (line 253) | public byte[] getName() { method roundNumber (line 257) | private static double roundNumber(double value) { FILE: src/main/java/dev/morling/onebrc/CalculateAverage_thomaswue.java class CalculateAverage_thomaswue (line 39) | public class CalculateAverage_thomaswue { method main (line 48) | public static void main(String[] args) throws IOException, Interrupted... method spawnWorker (line 84) | private static void spawnWorker() throws IOException { method accumulateResults (line 94) | private static TreeMap accumulateResults(List[... method parseLoop (line 107) | private static void parseLoop(AtomicLong counter, long fileEnd, long f... method findResult (line 192) | private static Result findResult(long initialWord, long initialDelimit... method nextNewLine (line 267) | private static long nextNewLine(long prev) { method scanNumber (line 283) | private static long scanNumber(Scanner scanPtr) { method record (line 291) | private static void record(Result existingResult, long number) { method hashToIndex (line 302) | private static int hashToIndex(long hash, Result[] results) { method convertIntoNumber (line 308) | private static long convertIntoNumber(int decimalSepPos, long numberWo... method findDelimiter (line 322) | private static long findDelimiter(long word) { method newEntry (line 327) | private static Result newEntry(Result[] results, long nameAddress, int... class Result (line 345) | private static final class Result { method Result (line 352) | private Result() { method toString (line 357) | public String toString() { method round (line 361) | private static double round(double value) { method accumulate (line 365) | private void accumulate(Result other) { method calcName (line 376) | public String calcName() { class Scanner (line 390) | private static final class Scanner { method initUnsafe (line 395) | private static sun.misc.Unsafe initUnsafe() { method Scanner (line 406) | public Scanner(long start, long end) { method hasNext (line 411) | boolean hasNext() { method pos (line 415) | long pos() { method add (line 419) | void add(long delta) { method getLong (line 423) | long getLong() { method getLongAt (line 427) | long getLongAt(long pos) { method getByteAt (line 431) | byte getByteAt(long pos) { FILE: src/main/java/dev/morling/onebrc/CalculateAverage_tivrfoa.java class CalculateAverage_tivrfoa (line 45) | public class CalculateAverage_tivrfoa { class Result (line 57) | private static class Result { method Result (line 64) | private Result(short number, long nameAddress, byte nameLength, Scan... method toString (line 81) | public String toString() { method round (line 85) | private static double round(double value) { method add (line 90) | private void add(Result other) { method add (line 101) | private void add(short number) { method calcName (line 112) | public String calcName() { method XXH3_avalanche (line 135) | private static long XXH3_avalanche(long h64) { class SolveChunk (line 141) | private static final class SolveChunk extends Thread { method SolveChunk (line 147) | public SolveChunk(int chunkStartIdx) { method run (line 151) | @Override method mergeIntoFinalMap (line 216) | private static void mergeIntoFinalMap(TreeMap map, Res... method main (line 227) | public static void main(String[] args) throws InterruptedException, IO... method getMap (line 241) | private static TreeMap getMap(SolveChunk[] threads) th... method scanNumber (line 257) | private static short scanNumber(Scanner scanPtr) { method hashToIndex (line 266) | private static int hashToIndex(long hash) { method mask (line 272) | private static long mask(long word, long pos) { method convertIntoNumber (line 277) | private static int convertIntoNumber(int decimalSepPos, long numberWor... method findDelimiter (line 292) | private static long findDelimiter(long word) { method getSegments (line 302) | private static long[] getSegments(int cpus) throws IOException { class Scanner (line 340) | private static class Scanner { method initUnsafe (line 344) | private static sun.misc.Unsafe initUnsafe() { method Scanner (line 357) | public Scanner(long start, long end) { method hasNext (line 362) | boolean hasNext() { method pos (line 366) | long pos() { method add (line 370) | void add(long delta) { method getLong (line 374) | long getLong() { method getLongAt (line 378) | long getLongAt(long pos) { method setPos (line 382) | void setPos(long l) { FILE: src/main/java/dev/morling/onebrc/CalculateAverage_tkosachev.java class CalculateAverage_tkosachev (line 30) | public class CalculateAverage_tkosachev { method toString (line 36) | public String toString() { method round (line 40) | private double round(double value) { class MeasurementAggregator (line 45) | private static class MeasurementAggregator { method newValue (line 51) | public void newValue(int m) { method mergeIn (line 62) | public void mergeIn(MeasurementAggregator add) { method main (line 74) | public static void main(String[] args) { method mergeIn (line 106) | private static void mergeIn(Map total, ... method processBuffer (line 113) | private static Map processBuffer(FileCh... method printResults (line 149) | private static void printResults(Map re... method fastParse (line 158) | public static int fastParse(byte[] buf, int start, int len) { FILE: src/main/java/dev/morling/onebrc/CalculateAverage_tonivade.java class CalculateAverage_tonivade (line 32) | public class CalculateAverage_tonivade { method main (line 40) | public static void main(String[] args) throws IOException, Interrupted... method readFile (line 44) | private static Map readFile() throws IOException, Int... class Chunk (line 87) | static final class Chunk { method Chunk (line 103) | Chunk(ByteBuffer buffer, int start, int length) { method findStart (line 109) | private static int findStart(ByteBuffer buffer, int start) { method read (line 121) | PartialResult read() { method readName (line 143) | private int readName(int offset, int length) { method readTemp (line 156) | private int readTemp(int offset, int length) { method parseTemp (line 168) | private static int parseTemp(byte[] value, int length) { method parseLeft (line 180) | private static int parseLeft(byte[] value, int start, int length) { method toInt (line 190) | private static int toInt(byte c) { class Stations (line 195) | static final class Stations { method find (line 202) | Station find(byte[] name, int length, int hash) { class Station (line 217) | static final class Station { method Station (line 227) | Station(byte[] source, int length, int hash) { method getName (line 233) | String getName() { method add (line 237) | void add(int value) { method merge (line 244) | Station merge(Station other) { method toString (line 252) | @Override method sameName (line 257) | boolean sameName(int length, int hash) { method mean (line 261) | private double mean() { method toDouble (line 265) | private double toDouble(int value) { method round (line 269) | private double round(double value) { method merge (line 276) | void merge(Map result) { FILE: src/main/java/dev/morling/onebrc/CalculateAverage_truelive.java class CalculateAverage_truelive (line 30) | public class CalculateAverage_truelive { method getDouble (line 35) | private static double getDouble(final byte[] arr, int pos) { method of (line 51) | public static Measurement of(final Double initialMeasurement) { method add (line 62) | public Measurement add(final double measurment) { method toString (line 70) | public String toString() { method round (line 78) | private double round(final double value) { method combineWith (line 82) | public static Measurement combineWith(final Measurement m1, final Meas... method main (line 96) | public static void main(final String[] args) throws IOException { method parseBuffer (line 148) | private static Map parseBuffer(final ByteBuffer b... FILE: src/main/java/dev/morling/onebrc/CalculateAverage_twobiers.java class CalculateAverage_twobiers (line 41) | public class CalculateAverage_twobiers { class FastAveragingCollector (line 47) | private static class FastAveragingCollector implements Collector parseMeasurements(ByteBuffer byteBuff... method fastParseDouble (line 216) | private static double fastParseDouble(byte[] bytes, int length) { method asDouble (line 238) | private static double asDouble(long value, int exp, boolean negative, ... FILE: src/main/java/dev/morling/onebrc/CalculateAverage_unbounded.java class CalculateAverage_unbounded (line 37) | public class CalculateAverage_unbounded { class StationStat (line 73) | static class StationStat { method StationStat (line 79) | StationStat(long count, long totalTemp, int min, int max) { method merge (line 86) | StationStat merge(StationStat other) { method toString (line 94) | @Override method main (line 100) | public static void main(String[] args) throws IOException, Interrupted... method slowProcessChunk (line 136) | private static void slowProcessChunk(MemorySegment mem, int startPos, ... class ProcessorThread (line 162) | static class ProcessorThread extends Thread { method ProcessorThread (line 187) | ProcessorThread(Queue segments, FileChannel channel, Consum... method run (line 197) | @Override method processChunk (line 219) | private static void processChunk(MemorySegment mem, int startPos, in... method fastLookupHash (line 278) | private static int fastLookupHash(int nameHash, ByteVector nameVec, ... method lookupHash (line 318) | private static int lookupHash(int nameHash, MemorySegment nameSeg, s... method handleHashCollision (line 367) | private static int handleHashCollision(short shortHash, int bucketId... method scanForStartPos (line 382) | private static int scanForStartPos(MemorySegment mem, int startPos) { method decodeResult (line 393) | private static Map decodeResult(short[] hashTable... method decodeInteger (line 418) | private static int decodeInteger(int encoded) { method printResult (line 425) | private static void printResult(Map stats) { FILE: src/main/java/dev/morling/onebrc/CalculateAverage_vaidhy.java class CalculateAverage_vaidhy (line 37) | public class CalculateAverage_vaidhy { class HashEntry (line 39) | private static final class HashEntry { class PrimitiveHashMap (line 47) | private static class PrimitiveHashMap { method PrimitiveHashMap (line 54) | PrimitiveHashMap(int twoPow) { method find (line 63) | public IntSummaryStatistics find(long startAddress, long endAddress,... method compareEntryKeys (line 143) | private static boolean compareEntryKeys(long startAddress, long endA... method entrySet (line 158) | public Iterable entrySet() { method simpleHash (line 179) | private static long simpleHash(long hash, long nextData) { method initUnsafe (line 184) | private static Unsafe initUnsafe() { method parseDouble (line 197) | private static int parseDouble(long startAddress, long endAddress) { type MapReduce (line 227) | interface MapReduce { method process (line 229) | void process(long keyStartAddress, long keyEndAddress, long hash, lo... method result (line 231) | I result(); type FileService (line 238) | interface FileService { method length (line 239) | long length(); method address (line 241) | long address(); method CalculateAverage_vaidhy (line 244) | CalculateAverage_vaidhy(FileService fileService, class LineStream (line 252) | static class LineStream { method LineStream (line 265) | public LineStream(FileService fileService, long offset, long chunkSi... method hasNext (line 273) | public boolean hasNext() { method findSemi (line 277) | public long findSemi() { method skipLine (line 308) | public long skipLine() { method findTemperature (line 320) | public long findTemperature() { method findByteOctet (line 343) | private long findByteOctet(long data, long pattern) { method bigWorker (line 348) | private void bigWorker(long offset, long chunkSize, MapReduce lineC... method smallWorker (line 421) | private void smallWorker(long offset, long chunkSize, MapReduce lin... method master (line 451) | public T master(int shards, ExecutorService executor) { class DiskFileService (line 502) | static class DiskFileService implements FileService { method DiskFileService (line 506) | DiskFileService(String fileName) throws IOException { method length (line 514) | @Override method address (line 519) | @Override class ChunkProcessorImpl (line 525) | private static class ChunkProcessorImpl implements MapReduce toPrintMap(Map combineOutputs( method unsafeToString (line 597) | private static String unsafeToString(long startAddress, long endAddres... FILE: src/main/java/dev/morling/onebrc/CalculateAverage_vemana.java class CalculateAverage_vemana (line 158) | public class CalculateAverage_vemana { method main (line 160) | public static void main(String[] args) throws Exception { method toString (line 251) | @Override class ByteRange (line 261) | public static class ByteRange { method ByteRange (line 295) | public ByteRange(RandomAccessFile raf, long maxEndPos) { method close (line 307) | public void close(String closerId, int shardIdx) { method setRange (line 321) | public void setRange(long rangeStart, long rangeEnd) { method toString (line 346) | @Override method close (line 358) | private void close(MappedByteBuffer buffer) { method nextNewLine (line 368) | private long nextNewLine(long pos) { method setByteBufferToRange (line 376) | private void setByteBufferToRange(long start, long end) { class Checks (line 390) | public static final class Checks { method checkArg (line 392) | public static void checkArg(boolean condition) { method Checks (line 398) | private Checks() { type LazyShardQueue (line 402) | public interface LazyShardQueue { method close (line 404) | void close(String closerId, int shardIdx); method fileTailEndWork (line 406) | Optional fileTailEndWork(int idx); method take (line 408) | ByteRange take(int shardIdx); class Reflection (line 411) | static final class Reflection { method findMethodNamed (line 413) | static Method findMethodNamed(Object object, String name, Class... p... method invoke (line 422) | static Object invoke(Object receiver, Method method, Object... param... class Runner (line 432) | public static class Runner { method Runner (line 444) | public Runner( method getSummaryStatistics (line 465) | AggregateResult getSummaryStatistics() throws Exception { method closeByteBuffers (line 520) | private void closeByteBuffers( method merge (line 536) | private AggregateResult merge(List> results) class SerialLazyShardQueue (line 566) | public static class SerialLazyShardQueue implements LazyShardQueue { method roundToNearestLowerMultipleOf (line 568) | private static long roundToNearestLowerMultipleOf(long divisor, long... method SerialLazyShardQueue (line 583) | public SerialLazyShardQueue( method close (line 644) | @Override method fileTailEndWork (line 649) | @Override method take (line 661) | @Override method attemptIntermediateClose (line 698) | private boolean attemptIntermediateClose(int shardIdx) { method consumeToPreviousNewLineExclusive (line 707) | private int consumeToPreviousNewLineExclusive(RandomAccessFile raf, ... class SeqLock (line 729) | static class SeqLock { method acquire (line 733) | boolean acquire() { method release (line 737) | void release() { class ShardProcessor (line 742) | public static class ShardProcessor { method ShardProcessor (line 748) | public ShardProcessor(LazyShardQueue shardQueue, int hashtableSizeBi... method processShard (line 754) | public AggregateResult processShard() { method processShardReal (line 758) | public AggregateResult processShardReal() { method processRange (line 769) | private void processRange(ByteRange range) { method processRangeSlow (line 779) | private void processRangeSlow(ByteRange range) { method result (line 786) | private AggregateResult result() { class ShardProcessorState (line 791) | public static class ShardProcessorState { method ShardProcessorState (line 800) | public ShardProcessorState(int slotsBits) { method processLine (line 806) | public int processLine(MappedByteBuffer mmb, int nextPos) { method processLineSlow (line 878) | public int processLineSlow(MappedByteBuffer mmb, int nextPos) { method result (line 915) | public AggregateResult result() { method copyFrom (line 926) | private byte[] copyFrom(MappedByteBuffer mmb, int offsetInMmb, int l... method equals (line 934) | private boolean equals(byte[] left, MappedByteBuffer right, int offs... method hasSemicolonByte (line 943) | private boolean hasSemicolonByte(long value) { method linearProbe (line 948) | private void linearProbe(int len, int hash, int temp, MappedByteBuff... class Stat (line 967) | public static class Stat { method firstReading (line 969) | public static Stat firstReading(int temp) { method merge (line 973) | public static Stat merge(Stat left, Stat right) { method Stat (line 984) | public Stat(int min, int max, long sum, long count) { method mergeReading (line 992) | public void mergeReading(int curTemp) { method toString (line 1009) | @Override class Tracing (line 1015) | static class Tracing { method analyzeWorkThreads (line 1029) | static void analyzeWorkThreads(int nThreads) { method recordAppStart (line 1035) | static void recordAppStart() { method recordEvent (line 1039) | static void recordEvent(String event) { method recordWorkEnd (line 1043) | static void recordWorkEnd(String id, int threadId) { method recordWorkStart (line 1047) | static void recordWorkStart(String id, int threadId) { method errPrint (line 1053) | private static void errPrint(String message) { method printEvent (line 1057) | private static void printEvent(String message, long nanoTime) { class ThreadTimingsArray (line 1061) | public static class ThreadTimingsArray { method toString (line 1063) | private static String toString(long[] array) { method ThreadTimingsArray (line 1074) | public ThreadTimingsArray(String id, int maxSize) { method analyze (line 1079) | public String analyze(int nThreads) { method recordEnd (line 1124) | public void recordEnd(int idx) { method recordStart (line 1129) | public void recordStart(int idx) { FILE: src/main/java/dev/morling/onebrc/CalculateAverage_vemanaNonIdiomatic.java class CalculateAverage_vemanaNonIdiomatic (line 55) | public class CalculateAverage_vemanaNonIdiomatic { method main (line 57) | public static void main(String[] args) throws Exception { method toString (line 151) | @Override class ByteRange (line 161) | public static class ByteRange { method ByteRange (line 202) | public ByteRange(RandomAccessFile raf, long maxEndPos, int shardIdx) { method close (line 215) | public void close(String closerId) { method setRange (line 225) | public void setRange(long rangeStart, long rangeEnd) { method toString (line 251) | @Override method bufferCleanSlate (line 266) | private void bufferCleanSlate() { method close (line 274) | private void close(MappedByteBuffer buffer) { method getBaseAddr (line 284) | private long getBaseAddr(MappedByteBuffer buffer) { method nextNewLine (line 290) | private long nextNewLine(long pos) { method setByteBufferExtent (line 302) | private void setByteBufferExtent(long start, long end) { class Checks (line 317) | public static final class Checks { method checkArg (line 319) | public static void checkArg(boolean condition) { method Checks (line 325) | private Checks() { class EntryData (line 344) | static class EntryData { method strFieldLen (line 359) | public static int strFieldLen() { method EntryData (line 367) | public EntryData(EntryMeta entryMeta) { method baseAddress (line 371) | public long baseAddress() { method cityNameString (line 375) | public String cityNameString() { method cityNamesOffset (line 394) | public int cityNamesOffset() { method count (line 398) | public int count() { method hash16 (line 402) | public short hash16() { method index (line 406) | public int index() { method init (line 410) | public void init(long srcAddr, int len, short hash16, short temperat... method isPresent (line 434) | public boolean isPresent() { method len (line 438) | public int len() { method max (line 442) | public short max() { method min (line 446) | public short min() { method setBaseAddress (line 450) | public void setBaseAddress(long baseAddress) { method setCityNameOffset (line 454) | public void setCityNameOffset(int cityNamesOffset, int len) { method setCount (line 460) | public void setCount(int value) { method setHash16 (line 464) | public void setHash16(short value) { method setIndex (line 468) | public void setIndex(int index) { method setLen (line 472) | public void setLen(byte value) { method setMax (line 476) | public void setMax(short value) { method setMin (line 480) | public void setMin(short value) { method setSum (line 484) | public void setSum(int value) { method stat (line 488) | public Stat stat() { method strAddress (line 492) | public long strAddress() { method sum (line 496) | public int sum() { method toString (line 500) | public String toString() { method update (line 509) | public void update(short temperature) { method updateOnMatch (line 516) | public boolean updateOnMatch( class EntryMeta (line 550) | static class EntryMeta { method toIntFromUnsignedShort (line 552) | static int toIntFromUnsignedShort(short x) { method EntryMeta (line 567) | EntryMeta(int n_entriesBits, EntryMeta oldEntryMeta) { method cityNamesAddress (line 582) | public long cityNamesAddress(int extraLenOffset) { method indexFromHash16 (line 586) | public int indexFromHash16(short hash16) { method nEntriesBits (line 590) | public int nEntriesBits() { method baseAddress (line 595) | long baseAddress(int n) { method entrySizeInBytes (line 600) | int entrySizeInBytes() { method getAndIncrementCityNames (line 604) | int getAndIncrementCityNames(int len) { method indexFromHash32 (line 611) | int indexFromHash32(int hash32) { method nEntries (line 616) | int nEntries() { method nextIndex (line 620) | int nextIndex(int index) { class Hashtable (line 625) | static class Hashtable { method Hashtable (line 637) | Hashtable(int slotsBits) { method addDataPoint (line 642) | public void addDataPoint(long srcAddr, int len, int hash32, short te... method result (line 660) | public AggregateResult result() { method getNewEntry (line 676) | private EntryData getNewEntry(EntryData oldEntry, EntryMeta newEntry... method onNewEntry (line 686) | private void onNewEntry() { method reHash (line 692) | private void reHash(int new_N_EntriesBits) { type LazyShardQueue (line 712) | public interface LazyShardQueue { method close (line 714) | void close(String closerId, int shardIdx); method fileTailEndWork (line 716) | Optional fileTailEndWork(int idx); method take (line 718) | ByteRange take(int shardIdx); class Reflection (line 721) | static final class Reflection { method findMethodNamed (line 723) | static Method findMethodNamed(Object object, String name, Class... p... method invoke (line 732) | static Object invoke(Object receiver, Method method, Object... param... class Runner (line 742) | public static class Runner { method Runner (line 754) | public Runner( method getSummaryStatistics (line 775) | AggregateResult getSummaryStatistics() throws Exception { method closeByteBuffers (line 830) | private void closeByteBuffers( method merge (line 846) | private AggregateResult merge(List> results) class SerialLazyShardQueue (line 876) | public static class SerialLazyShardQueue implements LazyShardQueue { method roundToNearestLowerMultipleOf (line 878) | private static long roundToNearestLowerMultipleOf(long divisor, long... method SerialLazyShardQueue (line 893) | public SerialLazyShardQueue( method close (line 954) | @Override method fileTailEndWork (line 959) | @Override method take (line 971) | @Override method attemptIntermediateClose (line 1008) | private boolean attemptIntermediateClose(int shardIdx) { method consumeToPreviousNewLineExclusive (line 1017) | private int consumeToPreviousNewLineExclusive(RandomAccessFile raf, ... class SeqLock (line 1039) | static class SeqLock { method acquire (line 1043) | boolean acquire() { method release (line 1047) | void release() { class ShardProcessor (line 1052) | public static class ShardProcessor { method ShardProcessor (line 1058) | public ShardProcessor(LazyShardQueue shardQueue, int hashtableSizeBi... method processShard (line 1064) | public AggregateResult processShard() { method processRange (line 1068) | private void processRange(ByteRange range) { method processRangeSlow (line 1075) | private void processRangeSlow(ByteRange range) { method processShardReal (line 1082) | private AggregateResult processShardReal() { method result (line 1093) | private AggregateResult result() { class FastShardProcessorState (line 1098) | public static class FastShardProcessorState { method FastShardProcessorState (line 1106) | public FastShardProcessorState(int slotsBits) { method processLine (line 1111) | public long processLine(long nextPos) { method processLineSlow (line 1147) | public long processLineSlow(long nextPos) { method result (line 1169) | public AggregateResult result() { method readTemperature (line 1180) | int readTemperature(long nextPos) { method doHash (line 1198) | private int doHash(long value) { method hasSemicolon (line 1203) | private long hasSemicolon(long x) { method maskOf (line 1208) | private long maskOf(int bits) { method updateStat (line 1212) | private void updateStat(Map map, String key, Stat curV... class Stat (line 1218) | public static class Stat { method firstReading (line 1220) | public static Stat firstReading(int temp) { method merge (line 1224) | public static Stat merge(Stat left, Stat right) { method Stat (line 1235) | public Stat(int min, int max, long sum, long count) { method mergeReading (line 1243) | public Stat mergeReading(int curTemp) { method toString (line 1261) | @Override class TemperatureLookup (line 1307) | public static class TemperatureLookup { method firstNeg (line 1335) | public static int firstNeg(long b) { method firstPos (line 1339) | public static int firstPos(long b) { method secondNeg (line 1343) | public static int secondNeg(long b) { method secondPos (line 1347) | public static int secondPos(long b) { method allDigits (line 1351) | private static byte[] allDigits() { method hash (line 1359) | private static int hash(byte msb, byte lsb) { method make (line 1364) | private static int[] make(boolean isFirst, boolean isNegative) { method update (line 1428) | private static void update(int index, int value, int delta, int[] re... class Tracing (line 1436) | static class Tracing { method analyzeWorkThreads (line 1450) | static void analyzeWorkThreads(int nThreads) { method recordAppStart (line 1456) | static void recordAppStart() { method recordEvent (line 1461) | static void recordEvent(String event) { method recordWorkEnd (line 1465) | static void recordWorkEnd(String id, int threadId) { method recordWorkStart (line 1469) | static void recordWorkStart(String id, int threadId) { method errPrint (line 1475) | private static void errPrint(String message) { method printEvent (line 1479) | private static void printEvent(String message, long nanoTime) { class ThreadTimingsArray (line 1483) | public static class ThreadTimingsArray { method toString (line 1485) | private static String toString(long[] array) { method ThreadTimingsArray (line 1496) | public ThreadTimingsArray(String id, int maxSize) { method analyze (line 1501) | public String analyze(int nThreads) { method recordEnd (line 1546) | public void recordEnd(int idx) { method recordStart (line 1551) | public void recordStart(int idx) { class Unsafely (line 1558) | static class Unsafely { method allocateZeroedCacheLineAligned (line 1562) | public static long allocateZeroedCacheLineAligned(int size) { method copyMemory (line 1568) | public static void copyMemory(long srcAddress, long destAddress, lon... method matches (line 1572) | public static boolean matches(long srcAddr, long destAddress, int le... method readByte (line 1615) | public static byte readByte(long address) { method readInt (line 1619) | public static int readInt(long address) { method readLong (line 1623) | public static long readLong(long address) { method readShort (line 1627) | public static short readShort(long address) { method setByte (line 1631) | public static void setByte(long address, byte len) { method setInt (line 1635) | public static void setInt(long address, int value) { method setShort (line 1639) | public static void setShort(long address, short len) { method getUnsafe (line 1643) | private static Unsafe getUnsafe() { FILE: src/main/java/dev/morling/onebrc/CalculateAverage_xpmatteo.java class CalculateAverage_xpmatteo (line 31) | @SuppressWarnings({ "ReassignedVariable", "StatementWithEmptyBody" }) method main (line 36) | public static void main(String[] args) throws IOException, Interrupted... class Worker (line 57) | public static class Worker extends Thread { method Worker (line 61) | public Worker(ByteBuffer buffer) { method run (line 65) | @Override method getResults (line 70) | public Results getResults() { method split (line 75) | protected static List split(FileChannel channel, int numCp... method byteAt (line 99) | private static byte byteAt(FileChannel channel, long offset) throws IO... method dataFileName (line 109) | public static String dataFileName(String[] args) { method readAllData (line 116) | protected static byte[] readAllData(String fileName) throws IOException { method memoryMap (line 120) | protected static ByteBuffer memoryMap(String fileName) throws IOExcept... type State (line 129) | protected enum State { method parseData (line 135) | protected static Results parseData(ByteBuffer data) { method accumulate (line 179) | private static void accumulate(Results results, String cityName, int t... method merge (line 192) | protected static Results merge(Results a, Results b) { class Results (line 210) | protected static class Results extends TreeMap { class CityData (line 214) | protected static class CityData { method CityData (line 217) | public CityData(int min, int sum, int max, int count) { method equals (line 224) | @Override method hashCode (line 234) | @Override method toString (line 239) | @Override method printCities (line 245) | protected static void printCities(Results cities) { FILE: src/main/java/dev/morling/onebrc/CalculateAverage_yavuztas.java class CalculateAverage_yavuztas (line 33) | public class CalculateAverage_yavuztas { method unsafe (line 42) | private static Unsafe unsafe() { method partial (line 56) | private static long partial(long word, int length) { class Record (line 62) | private static final class Record { method Record (line 77) | public Record(long start, int length, long word1, long word2, long w... method equals (line 90) | @Override method notEquals (line 96) | private static boolean notEquals(long address1, long address2, int s... method equalsComparingLongs (line 100) | private static boolean equalsComparingLongs(long start1, long start2... method equals (line 119) | private boolean equals(long start, long word1, long word2, long last... method toString (line 129) | @Override method collect (line 136) | private void collect(int temp) { method merge (line 145) | private void merge(Record that) { method measurements (line 154) | private String measurements() { class RecordMap (line 166) | private static final class RecordMap { method hasNoRecord (line 176) | private boolean hasNoRecord(int index) { method getRecord (line 180) | private Record getRecord(int index) { method hashBucket (line 184) | private static int hashBucket(int hash) { method putAndCollect (line 189) | private void putAndCollect(int hash, int temp, long start, int lengt... method putOrMerge (line 215) | private void putOrMerge(Record key) { method forEach (line 243) | private void forEach(Consumer consumer) { method merge (line 260) | private void merge(RecordMap other) { class RegionActor (line 267) | private static final class RegionActor extends Thread { method RegionActor (line 274) | public RegionActor(long startPos, int size) { method getWord (line 279) | private static long getWord(long address) { method hasSemicolon (line 285) | private static long hasSemicolon(long word) { method semicolonPos (line 291) | private static int semicolonPos(long hasVal) { method decimalPos (line 295) | private static int decimalPos(long numberWord) { method run (line 301) | @Override method appendHash (line 370) | private static long appendHash(long hash, long word) { method appendHash (line 374) | private static long appendHash(long hash, long word1, long word2) { method completeHash (line 379) | private static int completeHash(long hash, long partial) { method completeHash (line 384) | private static int completeHash(long hash, long word1, long word2) { method convertIntoNumber (line 392) | private static int convertIntoNumber(int decimalSepPos, long numberW... method get (line 416) | private RecordMap get() throws InterruptedException { method round (line 422) | private static double round(double value) { method findClosestLineEnd (line 429) | private static long findClosestLineEnd(long start, int size) { method isWorkerProcess (line 438) | private static boolean isWorkerProcess(String[] args) { method runAsWorker (line 442) | private static void runAsWorker() throws Exception { method main (line 456) | public static void main(String[] args) throws Exception { FILE: src/main/java/dev/morling/onebrc/CalculateAverage_yehwankim23.java class CalculateAverage_yehwankim23 (line 25) | public class CalculateAverage_yehwankim23 { method main (line 26) | public static void main(String[] args) throws Exception { class Measurement (line 74) | private static class Measurement { method Measurement (line 80) | public Measurement(double measurement) { method update (line 87) | public void update(double measurement) { method toString (line 100) | @Override FILE: src/main/java/dev/morling/onebrc/CalculateAverage_yemreinci.java class CalculateAverage_yemreinci (line 35) | public class CalculateAverage_yemreinci { method main (line 38) | public static void main(String[] args) throws IOException, ExecutionEx... method getFileSegments (line 103) | private static List getFileSegments(File file) throws IOE... method merge (line 121) | private static Result merge(Result v, Result value) { method merge (line 125) | private static Result merge(Result v, double value, double value1, dou... method findSegment (line 133) | private static long findSegment(int i, int skipSegment, RandomAccessFi... class Result (line 145) | static class Result { method Result (line 149) | Result(double value) { method toString (line 154) | @Override method round (line 159) | double round(double v) { class ByteArrayToResultMap (line 174) | static class ByteArrayToResultMap { method getPair (line 179) | private Pair getPair(int hash, byte[] key, int offset, int size) { method putOrMerge (line 190) | public void putOrMerge(int hash, byte[] key, int offset, int size, S... method getAll (line 206) | public List getAll() { FILE: src/main/java/dev/morling/onebrc/CalculateAverage_yonatang.java class CalculateAverage_yonatang (line 29) | public class CalculateAverage_yonatang { class HashTable (line 41) | public static class HashTable { method HashTable (line 46) | public HashTable() { method getIndex (line 52) | private int getIndex(long[] station) { method addRawMeasurementAgg (line 78) | private void addRawMeasurementAgg(long[] title, long measurements, l... method toMap (line 98) | public TreeMap toMap() { method addMeasurement (line 125) | public void addMeasurement(long[] title, short temp) { method mergeInto (line 139) | public void mergeInto(HashTable other) { class ResultRow (line 151) | private static class ResultRow { method ResultRow (line 156) | ResultRow(double min, double mean, double max) { method toString (line 162) | public String toString() { method round (line 166) | private double round(double value) { method parseStation (line 171) | public static boolean parseStation(MappedByteBuffer byteBuffer, ByteBu... method parseShort (line 207) | public static short parseShort(MappedByteBuffer byteBuffer) { method processChunk (line 236) | private static void processChunk(FileChannel fc, int j, long chunkSize... method main (line 286) | public static void main(String[] args) throws Exception { FILE: src/main/java/dev/morling/onebrc/CalculateAverage_yourwass.java class CalculateAverage_yourwass (line 35) | public class CalculateAverage_yourwass { class Record (line 36) | static final class Record { method Record (line 44) | Record(final long cityAddr, final long cityLength) { method merge (line 53) | private Record merge(Record r) { method getUnsafe (line 78) | private static Unsafe getUnsafe() { method main (line 90) | public static void main(String[] args) throws IOException, Throwable { method citiesDiffer (line 168) | private static final boolean citiesDiffer(final long a, final long b, ... method threadMain (line 178) | private static void threadMain(int id, long startAddr, long endAddr, l... FILE: src/main/java/dev/morling/onebrc/CalculateAverage_zerninv.java class CalculateAverage_zerninv (line 30) | public class CalculateAverage_zerninv { method initUnsafe (line 37) | private static Unsafe initUnsafe() { method main (line 48) | public static void main(String[] args) throws IOException, Interrupted... method splitByChunks (line 82) | private static List splitByChunks(long address, long end, long m... class TemperatureAggregation (line 95) | private static final class TemperatureAggregation { method TemperatureAggregation (line 101) | public TemperatureAggregation(long sum, int count, short min, short ... method merge (line 108) | public void merge(long sum, int count, short min, short max) { method toString (line 115) | @Override class MeasurementContainer (line 121) | private static final class MeasurementContainer { method MeasurementContainer (line 136) | private MeasurementContainer() { method put (line 141) | public void put(long address, byte size, int hash, long lastBytes, s... method collectTo (line 177) | public void collectTo(Map results) { method isEqual (line 199) | private boolean isEqual(long address, long address2, int size) { method createString (line 208) | private String createString(long address, byte size) { class TaskThread (line 217) | private static class TaskThread extends Thread { method TaskThread (line 244) | private TaskThread(int chunks) { method addChunk (line 250) | public void addChunk(long begin, long end) { method run (line 255) | @Override method calcLastLine (line 268) | private void calcLastLine(long offset) { method calcForChunk (line 303) | private void calcForChunk(long offset, long end) { method collectTo (line 353) | public void collectTo(Map results) { FILE: src/main/java/dev/morling/onebrc/CreateMeasurements.java class CreateMeasurements (line 24) | public class CreateMeasurements { method measurement (line 29) | double measurement() { method main (line 35) | public static void main(String[] args) throws Exception { FILE: src/main/java/dev/morling/onebrc/CreateMeasurements2.java class CreateMeasurements2 (line 33) | public class CreateMeasurements2 { class WeatherStation (line 37) | static class WeatherStation { method WeatherStation (line 46) | WeatherStation(String id, double meanTemperature) { method measurement (line 60) | void measurement(final CheaperCharBuffer buffer) { method main (line 75) | public static void main(String[] args) throws Exception { method produce (line 555) | private static void produce(BufferedWriter bw, List st... FILE: src/main/java/dev/morling/onebrc/CreateMeasurements3.java class CreateMeasurements3 (line 29) | public class CreateMeasurements3 { method main (line 34) | public static void main(String[] args) throws Exception { method generateWeatherStations (line 69) | private static ArrayList generateWeatherStations() thr... method skipComments (line 149) | private static void skipComments(BufferedReader rows) throws IOExcepti... method readNonSpace (line 154) | private static char readNonSpace(StringReader nameSource) throws IOExc... FILE: src/main/java/dev/morling/onebrc/CreateMeasurementsFast.java class CreateMeasurementsFast (line 29) | public class CreateMeasurementsFast { method measurement (line 35) | double measurement() { method main (line 41) | public static void main(String[] args) throws Exception { FILE: src/main/java/dev/morling/onebrc/PerfectHashSearch_hundredwatt.java class PerfectHashSearch_hundredwatt (line 35) | public class PerfectHashSearch_hundredwatt { method main (line 39) | public static void main(String[] args) throws IOException, Interrupted... FILE: src/main/java/org/rschwietzke/CheaperCharBuffer.java class CheaperCharBuffer (line 37) | public class CheaperCharBuffer implements CharSequence { method CheaperCharBuffer (line 65) | public CheaperCharBuffer() { method CheaperCharBuffer (line 76) | public CheaperCharBuffer(final int startSize) { method CheaperCharBuffer (line 86) | public CheaperCharBuffer(final int startSize, final int growBy) { method CheaperCharBuffer (line 98) | public CheaperCharBuffer(final CheaperCharBuffer src) { method CheaperCharBuffer (line 110) | public CheaperCharBuffer(final CheaperCharBuffer src, final int addCap... method CheaperCharBuffer (line 123) | public CheaperCharBuffer(final String src) { method CheaperCharBuffer (line 140) | public CheaperCharBuffer(final char[] ch, final int offset, final int ... method ensureCapacity (line 151) | private void ensureCapacity(final int minimumCapacity) { method capacity (line 165) | public int capacity() { method append (line 175) | public CheaperCharBuffer append(final char c) { method append (line 196) | public CheaperCharBuffer append(final String src) { method append (line 217) | public CheaperCharBuffer append(final CheaperCharBuffer src) { method append (line 237) | public CheaperCharBuffer append(final char[] src, final int offset, fi... method length (line 253) | public int length() { method getGrowBy (line 263) | public int getGrowBy() { method clear (line 273) | public CheaperCharBuffer clear() { method clearAndAppend (line 287) | public CheaperCharBuffer clearAndAppend(final char c) { method endsWith (line 310) | public boolean endsWith(final String s) { method reduceToContent (line 343) | public CheaperCharBuffer reduceToContent(final String startMarker, fin... method trimToContent (line 359) | public CheaperCharBuffer trimToContent(final String startMarker, final... method isWhitespace (line 423) | public boolean isWhitespace() { method trim (line 437) | public CheaperCharBuffer trim() { method trimLeading (line 448) | public CheaperCharBuffer trimLeading() { method trimWhitespaceAtEnd (line 486) | public CheaperCharBuffer trimWhitespaceAtEnd() { method trimTrailing (line 496) | public CheaperCharBuffer trimTrailing() { method shortenBy (line 520) | public CheaperCharBuffer shortenBy(final int count) { method getChars (line 532) | public char[] getChars() { method toString (line 543) | @Override method charAt (line 564) | @Override method unsafeCharAt (line 586) | public char unsafeCharAt(final int index) { method clone (line 595) | @Override method subSequence (line 620) | @Override method equals (line 645) | @Override method hashCode (line 677) | @Override method appendCodePoint (line 699) | public CheaperCharBuffer appendCodePoint(final int value) { FILE: src/main/java/org/rschwietzke/FastRandom.java class FastRandom (line 27) | public class FastRandom { method FastRandom (line 30) | public FastRandom() { method FastRandom (line 34) | public FastRandom(long seed) { method next (line 38) | protected int next(int nbits) { method nextInt (line 57) | public int nextInt(int bound) { method nextInt (line 73) | public int nextInt() { FILE: src/main/python/create_measurements.py function check_args (line 26) | def check_args(file_args): function build_weather_station_name_list (line 40) | def build_weather_station_name_list(): function convert_bytes (line 55) | def convert_bytes(num): function format_elapsed_time (line 65) | def format_elapsed_time(seconds): function estimate_file_size (line 83) | def estimate_file_size(weather_station_names, num_rows_to_create): function build_test_data (line 101) | def build_test_data(weather_station_names, num_rows_to_create): function main (line 144) | def main():