FAQ
This little thing is obvious. Changed


for (int i = 0; i < TRIES; i++) {
str2 = enc.encode(str.getBytes());
s += str2.length();
}
to str being of type byte[] outside the loop:

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:

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.

Search Discussions

Discussion Posts

Previous

Follow ups

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 2 of 4 | next ›
Discussion Overview
groupscala-user @
categoriesscala
postedApr 13, '15 at 10:21a
activeApr 13, '15 at 3:54p
posts4
users2
websitescala-lang.org
irc#scala

2 users in discussion

Haddock: 3 posts Will Sargent: 1 post

People

Translate

site design / logo © 2022 Grokbase