memory pooling

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • bob@blah.com

    memory pooling

    Hi,

    can anybody tell me whats the most widely used/trusted/tested and free
    memory pooling solution out there? I'd like to download it and possibly
    introduce it into our application (problems with too much time spent
    new'ing and delete'ing).

    thanks

    G

  • Noah Roberts

    #2
    Re: memory pooling


    bob@blah.com wrote:
    Hi,
    >
    can anybody tell me whats the most widely used/trusted/tested and free
    memory pooling solution out there? I'd like to download it and possibly
    introduce it into our application (problems with too much time spent
    new'ing and delete'ing).
    The most common and trusted are objects that implement the RAII idiom,
    like boost::shared_p tr.

    Other options include an actual memory pool in boost that I believe
    works similarly to NextStep's NSAutoreleasePo ol.

    I prefer RAII though I can see when the pool method might be more
    appropriate.

    Comment

    • Victor Bazarov

      #3
      Re: memory pooling

      bob@blah.com wrote:
      can anybody tell me whats the most widely used/trusted/tested and free
      memory pooling solution out there? I'd like to download it and
      possibly introduce it into our application (problems with too much
      time spent new'ing and delete'ing).
      Search for "SmartHeap" . I don't know what "the most widely used..."
      solution is, but SmartHeap is decent.

      V
      --
      Please remove capital 'A's when replying by e-mail
      I do not respond to top-posted replies, please don't ask


      Comment

      • mlimber

        #4
        Re: memory pooling

        bob@blah.com wrote:
        can anybody tell me whats the most widely used/trusted/tested and free
        memory pooling solution out there? I'd like to download it and possibly
        introduce it into our application (problems with too much time spent
        new'ing and delete'ing).
        Check out:



        Cheers! --M

        Comment

        • wkaras@yahoo.com

          #5
          Re: memory pooling

          mlimber wrote:
          bob@blah.com wrote:
          can anybody tell me whats the most widely used/trusted/tested and free
          memory pooling solution out there? I'd like to download it and possibly
          introduce it into our application (problems with too much time spent
          new'ing and delete'ing).
          >
          Check out:
          >

          >
          Cheers! --M
          This looks like a good option if your app allocates fixed sized blocks.

          If you truly need to replace void * operator ::new(size_t), you
          could use:

          Latest news coverage, email, free stock quotes, live scores and video are just the beginning. Discover more every day at Yahoo!


          This allocator is design to have reasonable performance in
          all situations, rather than optimal performance in some
          typical case. If multiple threads are going to allocate from
          the same heap, you'll need a mutex to protect the heap.

          Comment

          Working...