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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T10:47:25+00:00 2026-06-10T10:47:25+00:00

Why would one choose to use ordered_free() instead of free() when using Boost pool?

  • 0

Why would one choose to use ordered_free() instead of free() when using Boost pool? Assumedly ordered_free() is always O(n) while free() should be O(1). Is there a benefit where there is less fragmentation? My use case is using Boost pool in a high-performance server that will run all day long with lots of allocations and deallocations throughout the day.

  • 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-10T10:47:26+00:00Added an answer on June 10, 2026 at 10:47 am

    The documentation answers this question:

    An ordered pool maintains it’s free list in order of the address of each free block – this is the most efficient way if you’re likely to allocate arrays of objects. However, freeing an object can be O(N) in the number of currently free blocks which can be prohibitively expensive in some situations.

    An unordered pool does not maintain it’s free list in any particular order, as a result allocation and freeing single objects is very fast, but allocating arrays may be slow (and in particular the pool may not be aware that it contains enough free memory for the allocation request, and unnecessarily allocate more memory).

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

Sidebar

Related Questions

When would one choose to use Rx over TPL or are the 2 frameworks
Related: Why would one use REST instead of Web services? When deciding whether to
I'm confused as to when one would choose AsyncTask over a Handler. Say I
How would one shorten the following using ternary operators? if ((pos - maxPos) ==
Why would one use realloc() function to resize an dynamically allocated array rather than
Why would one use func( const Class &value ) rather than just func( Class
Two quick quesitons: Benefits of using EDMLs vs. EDMXs - when would you choose
I'm having some images from which the user should choose one. Now I don't
When to use ado.net and SQL Server transactions? Are there any reasons why one
Is there a particularly good reason to choose to use an elaborated type specifier

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.