Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.c++ > #11507

Re: STL vector / Heap fragmentation

Newsgroups comp.lang.c++
Subject Re: STL vector / Heap fragmentation
References (2 earlier) <Mb2dneNfZZSJS1_TnZ2dnUVZ8iednZ2d@giganews.com> <4ec2dda9$0$6635$9b4e6d93@newsspool2.arcor-online.net> <b5SdnddrZNbBfF_TnZ2dnUVZ8nOdnZ2d@giganews.com> <op.v404l3vavc68pg@hp2011.workgroup> <9c5c6efa-78d6-478e-8591-59334000a6a7@o17g2000yqa.googlegroups.com>
Date 2011-11-16 10:58 +0100
From "Peter Liedermann" <peter09876@hispeed.ch>
Message-ID <op.v4090dxovc68pg@hp2011.workgroup> (permalink)
Organization hispeed.ch

Show all headers | View raw


On Wed, 16 Nov 2011 09:39:29 +0100, Goran <goran.pusic@gmail.com> wrote:


> It's perhaps worth adding that sorting the vector<Jumbo> in itself
> doesn't affect heap fragmentation, as sorting should be in-place.

also if the Jumbo* instances are of varying length?


> Rather, any allocations that Jumbo copying makes affect it. It Jumbo
> is big, but of small pieces, then it's likely you won't be affected.

Wouldn't Jumbo big and of small pieces make fragmentation worse?

Peter

Back to comp.lang.c++ | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

STL vector "Peter Liedermann" <peter09876@hispeed.ch> - 2011-11-15 20:50 +0100
  Re: STL vector Marcel Müller <news.5.maazl@spamgourmet.com> - 2011-11-15 21:30 +0100
    Re: STL vector Leigh Johnston <leigh@i42.co.uk> - 2011-11-15 21:13 +0000
      Re: STL vector Marcel Müller <news.5.maazl@spamgourmet.com> - 2011-11-15 22:46 +0100
        Re: STL vector Leigh Johnston <leigh@i42.co.uk> - 2011-11-15 22:02 +0000
          Re: STL vector / Heap fragmentation "Peter Liedermann" <peter09876@hispeed.ch> - 2011-11-16 09:02 +0100
            Re: STL vector / Heap fragmentation Goran <goran.pusic@gmail.com> - 2011-11-16 00:39 -0800
              Re: STL vector / Heap fragmentation "Peter Liedermann" <peter09876@hispeed.ch> - 2011-11-16 10:58 +0100
                Re: STL vector / Heap fragmentation Goran <goran.pusic@gmail.com> - 2011-11-16 04:12 -0800
    Re: STL vector "Peter Liedermann" <peter09876@hispeed.ch> - 2011-11-16 08:55 +0100
      Re: STL vector yatremblay@bel1lin202.(none) (Yannick Tremblay) - 2011-11-16 16:54 +0000
      Re: STL vector Joe Gottman <josephgottman@comcast.net> - 2011-11-16 18:22 -0500
  Re: STL vector Joe Gottman <josephgottman@comcast.net> - 2011-11-15 21:59 -0500
    Re: STL vector "Peter Liedermann" <peter09876@hispeed.ch> - 2011-11-16 08:58 +0100
  Re: STL vector Werner <werasm@gmail.com> - 2011-11-16 05:53 -0800
  Re: STL vector Leigh Johnston <leigh@i42.co.uk> - 2011-11-16 14:02 +0000
    Re: STL vector Leigh Johnston <leigh@i42.co.uk> - 2011-11-16 14:05 +0000
    Re: STL vector "Peter Liedermann" <peter09876@hispeed.ch> - 2011-11-17 16:45 +0100
      Re: STL vector Leigh Johnston <leigh@i42.co.uk> - 2011-11-17 16:19 +0000
      Re: STL vector Joshua Maurice <joshuamaurice@gmail.com> - 2011-11-17 15:19 -0800

csiph-web