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 8588955
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T22:55:42+00:00 2026-06-11T22:55:42+00:00

I ask this question out of sheer curiosity. I don’t have any actual code

  • 0

I ask this question out of sheer curiosity. I don’t have any actual code to ponder over.

Is there a best-case scenario for using a jagged array instead of a list of lists, and vice versa?

  • 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-06-11T22:55:43+00:00Added an answer on June 11, 2026 at 10:55 pm

    a List<T> is an array, just a wrapped in a class so it can reallocate and resize it at will. So otherwise performance between the two can be considered identical – only use List<List<T>> if you need to resize either dimension – don’t forget that whenever you resize the 0th dimension you’ll need to construct new instances in the 1st dimension, which can be expensive.

    You forgot n-dimensional arrays (i.e. T[,]). However, due to a quirk in .NET’s bounds-checking these are actually slower than jagged arrays or single-dimensional-user-managed arrays, which is a complete mystery.

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

Sidebar

Related Questions

This question is mostly academic. I ask out of curiosity, not because this poses
Before I ask this question I must point out that I have tried to
I'm sorry to ask this question but I have spent hours trying to understand
[i meant to ask this question on StackOverflow...] I have been using VisualSVN Server
I have to really ask this question as I donot know Python. Following are
It's little embarrassing to ask this question. But I can't figure out a way
I'm going to ask this question again,I thought I had figured it out but
I don't know how to ask this question properly. I think the title is
I'm not really sure how to ask this question. Suppose I have a class
I think this is not best place to ask this question but ..i don't

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.