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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T18:19:10+00:00 2026-06-11T18:19:10+00:00

I’ve decided that I need to create a 64-bit List to fulfill some of

  • 0

I’ve decided that I need to create a 64-bit List to fulfill some of my program’s needs, namely the ability to use longs as indexes. I’ve looked at the Mono code for implementing a List, and have come to the general conclusion that no matter what I choose, I should make a variation of IList (using longs) to work with it.

Now my question is, what do you think would be a good approach to this design? I am currently thinking of two possibilities -> since a List is just a wrapper for the Array class, I can just rewrite the List class to use giant arrays; or I can write the class to use a List of Lists to maintain and grow the data as needed. The problem with the first appears to be choosing an array that is too large, and the second is trying to make Remove() and other assorted methods work, when I’d probably need to perform massive memory copies to keep everything indexed properly. Your thoughts?

  • 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-11T18:19:11+00:00Added an answer on June 11, 2026 at 6:19 pm

    Since arrays are limited to be indexed by int you will have to use multiples of them anyway. I’d directly go for List of List. Note that all objects in CLR are limited by 2Gb single chunk of memory for allocation.

    Side notes:

    • if you planning to implement true 4GB+ linear array that support insert/remove operations in the middle you simply should adjust your performace expectations – any insert or remove will be slow. At such scale having append only array maybe reasonable approach.
    • if add/remove are important consider some other data structures i.e. B-tree. You will sacrify constant access time in most cases, but gain reasonable.
    • if you arrays are sparse consider simple Dictionary instead or as backing storage.

    Here is link to more detailed discussion about large arrays.

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

Sidebar

Related Questions

I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
I need a function that will clean a strings' special characters. I do NOT
I'm trying to create an if statement in PHP that prevents a single post
link Im having trouble converting the html entites into html characters, (&# 8217;) i
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I have just tried to save a simple *.rtf file with some websites and
For some reason, after submitting a string like this Jack’s Spindle from a text
I am trying to understand how to use SyndicationItem to display feed which is
Basically, what I'm trying to create is a page of div tags, each has
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function

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.