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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T00:54:43+00:00 2026-05-15T00:54:43+00:00

I need to store multi-dimensional data consisting of numbers in a manner thats easy

  • 0

I need to store multi-dimensional data consisting of numbers in a manner thats easy to work with. I’m capturing data in real time (processing live video frames every 40ms/10ms), and once processed I would destroy and GC older data.

This data structure must be fast so it won’t hit my overall app performance. The faster the better (my algorithms are pretty time consuming, from 1ms to 20ms and I will be reading / writing this data lots throughout my code).

What are my choices in terms of platform supported data structures? I’m using VS 2010. and .NET 4.

  • 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-15T00:54:44+00:00Added an answer on May 15, 2026 at 12:54 am

    The fastest way is probably:

    • A one-dimensional array, indexed like a multi-dimensional array (array[x, y] <=> array[x + y * columns])
    • Accessed through pointers if random read/writes occur.
    • Reuse the array as much as possible, don’t allocate new ones constantly. Especially if it’s big, because if the size is > 85K, it gets allocated on the Large Object Heap, which doesn’t get compacted by the GC after a collection, causing eventual fragmentation if you constantly reallocate the array.
    • Accessed as much as possible in parallel. Just gotta make sure multiple threads never, ever write to the same element.

    Of course, this is a generic answer, because the question is also pretty generic. Can’t really go wrong with it, though.

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

Sidebar

Related Questions

I need to store a multi-dimensional associative array of data in a flat file
I need to store phone numbers in a table. Please suggest which datatype should
I need to store some sensitive data by encrypting it with atleast 128 bit
I need to store items with a calendar date (just the day, no time)
I need to store data in a grid like this: {0,1,2,3} {4,5,6,7} {8,9,10,11} {12,13,14,15}
I've come to the point where I need to store some additional data about
I have an app that shows store sales. It is a multi-dimensional array, so
Possible Duplicate: Multi value Dictionary I just need to store 2 value. How can
In my application, I need to store and transmit data that contains many repeating
I have id values for products that I need store. Right now they are

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.