[Bug libstdc++/77524] Empty std::deque allocates unnecessary heap memory

2016-09-08 Thread d.rigby at me dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77524 --- Comment #5 from Dave Rigby --- (In reply to Jonathan Wakely from comment #4) > Please create a new bug for those container adaptors, as that can and should > be fixed for the default configuration. We'll keep this bug for the > non-backwards-

[Bug libstdc++/77524] Empty std::deque allocates unnecessary heap memory

2016-09-08 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77524 --- Comment #4 from Jonathan Wakely --- (In reply to Dave Rigby from comment #3) > As an aside, std::queue<> (defaulting to using std::deque as the underlying > Container) suffers from a similar issue - I see 4 allocations for an empty > std::que

[Bug libstdc++/77524] Empty std::deque allocates unnecessary heap memory

2016-09-08 Thread d.rigby at me dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77524 --- Comment #3 from Dave Rigby --- As an aside, std::queue<> (defaulting to using std::deque as the underlying Container) suffers from a similar issue - I see 4 allocations for an empty std::queue. Is this the same underlying issue, or should I r

[Bug libstdc++/77524] Empty std::deque allocates unnecessary heap memory

2016-09-08 Thread d.rigby at me dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77524 --- Comment #2 from Dave Rigby --- Hi Jonathan, Thanks for the context - useful to know why the current behaviour is the case (even if not ideal).

[Bug libstdc++/77524] Empty std::deque allocates unnecessary heap memory

2016-09-08 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77524 Jonathan Wakely changed: What|Removed |Added Keywords||ABI Status|UNCONFIRMED