Java > Scala

Kagamin spam at here.lot
Fri Dec 2 12:15:12 PST 2011


Marco Leise Wrote:

> These functions sum up to ~80%. And if it is correct, the garbage  
> collector functions each take a low place in the table. At this point I'd  
> probably recommend an ASCII regex, but I'd like to know how Java can still  
> be substantially faster with library routines. :)

Java probably uses utf16, strings are already in utf16 as they're read from file, that means text is transcoded eagerly by chunks, not lazily char-by-char. This may cause icache misses or mispredictions, dunno.


More information about the Digitalmars-d mailing list