>
> Perhaps we should raise an issue with Scala to fix the performance problem if it really is one (and we should measure that to confirm). It seems silly for every project to have to write its own IO utilities.
>
> I think Source is OK for reading source files, which is what I assume it
was written for. It has utilities for reading line-by-line so it looks very
text focused.

My suggestion would be to maintain PlayIO until we can use Java 7's Files
class instead. The other option which is available now would be to use
commons-io, but I think we want to avoid a runtime dependency.

> Also, do we use these utilities to read anything other than strings?
> Apologies if so as I'm not in a position to check.
>
> Perhaps akka-streams will provide the ultimate solution here though given
> that NIO is slated.
>
> Re your mention of the assets controller, I think there's just one place
> where a file is read for its digest key and that value is cached. scala.iois used.
>
Sorry, I shouldn't have said the assets controller, I meant the raw content
parser, which sometimes uses binary files to store large uploads. I think
the usage you have in the assets controller is fine.