Re: ZoneView or ways of dealing with large objects?
Oliver Wong wrote:
I'm also doing a LOT of string manipulation. I'm building a JTextArea
object basically one and two characters at a time. So the heap is
likely about as full of garbage as it is likely to get.
Are you using the StringBuilder or StringBuffer classes for your
string manipulations?
No, thanks for the pointer. I'll look into those. But I'd still like a
more scalable solution than relying on memory manipulation.
What happens when I try to display a file that's bigger than main memory
+ swap file? I plan on doing some heavy graphics work in the future so
I'm interested in solutions for very large file sizes.
I thought about asking the JVM to increase it's memory size, but that
didn't seem like a scalable solution. Plus I might have to ask users
to do the same. So I'm looking for something scalable, something
that'll work even when I point it at a 10 Gb file.
Have you considered memory-mapped files?
I'm already using memory mapped files. (Well, one file, the input file,
which is the only file I have.)