3 ms·
> One thing you learn using java is not moving arrays around. And then all of a sudden you have an order of magnitude more memory usage because you have a bunc
by TheLoneWolfling 12y ago
> One thing you learn using java is not moving arrays around.
And then all of a sudden you have an order of magnitude more memory usage because you have a bunch of Characters as opposed to a bunch of chars.
- mcosta 12y agoI use String(s)
- TheLoneWolfling 12y agoWhich doesn't help in the case I was discussing, namely when you want a generic array. As in: generic. Not specific. You end up having to use a collection, which ends up with an order of magnitude more memory usage than an array in the case where you want to store characters. (char is the worst case. But all primitives are pretty bad in that regard.)