3 ms·
String interning is a side issue here. But what you suggest is basically to destructure all structured types into lots of individual arrays. That's a technique
by fauigerzigerk 16y ago
String interning is a side issue here. But what you suggest is basically to destructure all structured types into lots of individual arrays. That's a technique I'm using frequently. But it's a very tedious and error prone thing to do once the data structures get a little more complex. But I still agree that it's sometimes a workable solution. It's not a workable solution if Amount objects are part of other structures.
Consider this:
class Point { int x; int y; }
class Rect { Point a; Point b; }
List<Rect> list ...