Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

HashMap for carrying large data, good performance?

 
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: 65535
108
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.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!