Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6872287
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T03:54:31+00:00 2026-05-27T03:54:31+00:00

I have a performance situation at hand. I have a huge amount of data

  • 0

I have a performance situation at hand.

I have a huge amount of data to be held in memory in a two dimensional table format (12000 X 2000). Now as far as my knowledge goes either I can use int[][] or List<List<Integer>>. And, of course, I access the values using int[i][j] or list.get(i).get(j). I am looping through the entire data at least five times.

Which one do you think will work faster and, if you can answer, why? Also is there any way to speed up the execution?

My java -version gives:
java version "1.6.0_29"
Java(TM) SE Runtime Environment (build 1.6.0_29-b11)
Java HotSpot(TM) Client VM (build 20.4-b02, mixed mode, sharing)

The OS is Windows Vista.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T03:54:32+00:00Added an answer on May 27, 2026 at 3:54 am

    The array will almost certainly be faster.

    Using an ArrayList will bring the performance more in-line since it’s backed by an actual array.

    Edit to summarize comments

    • Lists are re-sizeable. May or may not be an issue.
    • Performance differences tend towards minimal.
    • It should be benchmarked to know for sure.

    For this usecase I believe the arrays will be measurably faster. Whether it’s faster enough to matter is a different issue, and I don’t know enough about the actual problem being solved to make a judgement on that.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a performance problem on a query. First table is a Customer table
I have a situation (where performance is critical) to check if a customer account
I'm currently working on some performance critical code, and I have a particular situation
I have the following situation (in Rails 3): my table contains financial transactions for
I'm in a situation where I have to improve the performance of about 75
I have a situation like this: create table a( a_id number(38) not null, constraint
How do I improve the performance of the following situation? I have an application
I have performance Issues when trying to load a list of contacts. this is
Does windows have performance counters to measure statistics of a dialup connection? Opening up
I have a performance sensitive scenario where I would like to write UTF-8 to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.