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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T06:16:38+00:00 2026-06-09T06:16:38+00:00

so my applications has containers with 100 million and more elements. I’m on the

  • 0

so my applications has containers with 100 million and more elements.

I’m on the hunt for a container which behaves – time-wise – better than std::deque (let alone std::vector) with respect to frequent insertions and deletions all over the container … including near the middle. Access time to the n-th element does not need to be as fast as vector, but should definetely be better than full traversal like in std::list (which has a huge memory overhead per element anyway).

Elements should be treated ordered by index (like vector, deque, list), so std::set or std::unordered_set also do not work well.

Before I sit down and code such a container myself: has anyone seen such a beast already? I’m pretty sure the STL hasn’t anything like this, looking to BOOST I did not find something I could use but I may be wrong.

Any hints?

  • 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-09T06:16:39+00:00Added an answer on June 9, 2026 at 6:16 am

    I think you can get the performance characteristics that you want with a skip list:

    https://en.wikipedia.org/wiki/Skip_list#Indexable_skiplist

    It’s the “indexable” part that you’re interested in, of course — you don’t actually want the items to be sorted. So some modification is needed that I leave as an exercise.

    You might find that 100 million list nodes begins to strain a 32 bit address space, but probably not an issue in 64 bits.

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

Sidebar

Related Questions

There are 3 different applications that has data which is not properly formatted. I
I am starting a project which has several applications. These applications share some common
One of my applications has property of images as background of Cells in UITableView,
Here's my scenario: the company I work has applications deployed to a 32bit Windows
Has anyone used both Joone and Encog in production applications? Is there something you
Has anyone had any experiences developing large Java applications using GNU gettext for internationalization?
I want to create applications in windows that has complete portability (within windows OSes
1194.21 Software applications and operating systems has this to say about focus: (c) A
I created a project which includes an mx:ViewStack as it's first container. <?xml version=1.0
I have a model which contains many predefined rows (> 100) and also can

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.