Skip to content

Commit

Permalink
metrics on stubo
Browse files Browse the repository at this point in the history
  • Loading branch information
fireduck64 committed Nov 3, 2018
1 parent 0fb241c commit e1e2c47
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion miner/src/FieldSourceComposit.java
Expand Up @@ -28,14 +28,23 @@ public FieldSourceComposit(List<FieldSource> sources)
holding_set = ImmutableSet.copyOf(total);
}


public void bulkRead(long word_index, ByteBuffer bb) throws java.io.IOException
{
int chunk = (int)(word_index / words_per_chunk);
for(FieldSource fs : sources)
{

if (fs.hasChunk(chunk))
{
fs.bulkRead(word_index, bb);
if (bb.remaining() == 16)
{
fs.readWord(word_index, bb);
}
else
{
fs.bulkRead(word_index, bb);
}
return;
}
}
Expand Down

0 comments on commit e1e2c47

Please sign in to comment.