Reputation: 13
I have to store key value pairs in java which is more memory efficient and which is more time efficient while reading and writing directly in file?
<string,double,double>
<string,object>
where object contain two double values.<string,object>
where object contain two double values.also you can suggest some other methods.
Upvotes: 1
Views: 1421
Reputation: 533750
The most efficient is likely to be Map<String, double[]>
Whether you use Guava or not I don't imagine making much difference.
Upvotes: 8