for (int i = 0; i < TRIES; i++) {
str2 = enc.encode(str.getBytes());
s += str2.length();
}
to str being of type byte[] outside the loop:s += str2.length();
}
byte[] str = buffer.toString().getBytes();
So the loop becomes now:
for (int i = 0; i < TRIES; i++) {
str2 = enc.encode(str);
s += str2.length();
}
The new figures look better:s += str2.length();
}
encode: 1368421200, 24.292234126
decode: 1000000000, 50.448542176
Nevertheless, Scala is still in the lead...
--
You received this message because you are subscribed to the Google Groups "scala-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scala-user+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.