• Post Reply Bookmark Topic Watch Topic
  • New Topic

HashMap for carrying large data, good performance?  RSS feed

 
Ramasubramaniam Rathinasubbu
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear all,

In web module, i am storing column in hashmap and store in each row in arraylist and return,.

for performance point of view, is it good practice or it is bad.

storing each column from databse in object and store in arraylist is best

or storing each column from databse in hashmap and store in arraylist is best
 
Satya Sakhinetipalli
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
to improve the performance you can try using multi-dimensional array.
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66208
151
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Why change anything if there's no provable performance issue? Look up the term premature optimization.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!