multithreaded decryption using producer/consumer pattern

This commit is contained in:
Sebastian Stenzel
2015-07-26 22:22:50 +02:00
parent 738d2dfc34
commit cdcc1626ce
7 changed files with 255 additions and 94 deletions
@@ -70,9 +70,9 @@ public class RangeRequestTest {
final HttpClient client = new HttpClient();
// prepare 64MiB test data:
final byte[] plaintextData = new byte[6777216 * Integer.BYTES];
final byte[] plaintextData = new byte[16777216 * Integer.BYTES];
final ByteBuffer bbIn = ByteBuffer.wrap(plaintextData);
for (int i = 0; i < 6777216; i++) {
for (int i = 0; i < 16777216; i++) {
bbIn.putInt(i);
}
final InputStream plaintextDataInputStream = new ByteArrayInputStream(plaintextData);