202203204205206207208209210211212
StopWatch sw = new StopWatch(); try { for (j = 0; j < 10000; j++) { for (i = 0; i < sample.length; i++) { int pos = intLookup.findFirstEqualKeyIndex(sample[i]); sampleVals[i] = intLookup.getValue(pos); intLookup.remove(pos); }
216217218219220221222223224225226
} } System.out.println( sw.elapsedTimeToMessage("Double int table times")); intLookup.findFirstEqualKeyIndex(0); // sort compareByHIteratorInt(intLookup, hIntMap); } catch (Exception e) { System.out.println( sw.elapsedTimeToMessage("Double int table error: i =" + i));
179180181182183184185186187188189
} for (int j = 0; j < arrayOfInt.length; j++) { if (arrayOfInt[j] == -1) continue; int k = localDoubleIntIndex.findFirstEqualKeyIndex(arrayOfInt[j]); if (k == -1) throw Trace.error(129); arrayOfInt[j] = localDoubleIntIndex.getValue(k); } setTransactionRowLookups(localDoubleIntIndex);
258259260261262263264265266267268
if (rootsArray[i] == -1) { continue; } int lookupIndex = pointerLookup.findFirstEqualKeyIndex(rootsArray[i]); if (lookupIndex == -1) { throw Error.error(ErrorCode.DATA_FILE_ERROR); }