media.io update #2
I haven't done anything big to media.io in the last two days – I’ve been busy setting up two SSDs.
One thing I'm doing right now is tracing the memory usage of media.io. What I found surprising is how many programs print awful amounts of debug information. If you simply read all lines using something like BufferedReader, a lot of temporary Strings will be generated.
One thing I do to keep memory usage down is to ignore stderr. Also, I only read into a byte array from stderr to reduce object allocations.
It still takes a lot of tweaks to build something that will scale well to many users. :-)
Filed under //
external programs
heap
java
media.io
memory
memory usage
native
native code
performance
reading
stderr
stdin
Comments [0]