Opened 10 years ago
Closed 10 years ago
#7908 closed Bugs (fixed)
Complexity of ~stable_vector() not linear to the number of elements
Reported by: | Gerhard Holzmeister | Owned by: | Ion Gaztañaga |
---|---|---|---|
Milestone: | To Be Determined | Component: | container |
Version: | Boost 1.52.0 | Severity: | Problem |
Keywords: | stable_vector | Cc: |
Description
Complexity of ~stable_vector() seem to be quadratic to the number of elements.
Tested with 1.48 and 1.52
Attachments (1)
Change History (5)
by , 10 years ago
comment:1 by , 10 years ago
comment:2 by , 10 years ago
These are the results on a new installed ubuntu 12.10 x86 running with kvm on centos 6.3
Boost 1.49 installed via apt.
size: 1000 create and fill time/size:1258 delete time/size:10567 size: 2000 create and fill time/size:1164 delete time/size:20005 size: 4000 create and fill time/size:1190 delete time/size:38959 size: 8000 create and fill time/size:1164 delete time/size:77162 size: 16000 create and fill time/size:1193 delete time/size:131888 size: 32000 create and fill time/size:766 delete time/size:198136 size: 64000 create and fill time/size:778 delete time/size:396147
comment:3 by , 10 years ago
Tested with the newly released 1.53:
size: 1000 create and fill time/size:3322 delete time/size:390 size: 2000 create and fill time/size:2905 delete time/size:369 size: 4000 create and fill time/size:2915 delete time/size:375 size: 8000 create and fill time/size:2864 delete time/size:368 size: 16000 create and fill time/size:2901 delete time/size:372 size: 32000 create and fill time/size:2882 delete time/size:367 size: 64000 create and fill time/size:2905 delete time/size:367
Bug seems to be fixed here.
comment:4 by , 10 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Thanks for the report and for testing so many versions. Closing the bug as it's fixed in Boost 1.53.
Note:
See TracTickets
for help on using tickets.
With current trunk code, with MSVC 7.1 in release mode I get the following results:
With GCC 4.5 in Ubuntu 8.10 (VMWare VM in Windows):
This seems pretty linear. Can you confirm this in your platform? Might it be related to the underlying allocator?