[llvm-bugs] [Bug 32435] New: std::deque default block size (4096) is too generous

via llvm-bugs llvm-bugs at lists.llvm.org
Mon Mar 27 10:06:37 PDT 2017


https://bugs.llvm.org/show_bug.cgi?id=32435

            Bug ID: 32435
           Summary: std::deque default block size (4096) is too generous
           Product: libc++
           Version: unspecified
          Hardware: PC
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: All Bugs
          Assignee: unassignedclangbugs at nondot.org
          Reporter: dskiba at google.com
                CC: llvm-bugs at lists.llvm.org, mclow.lists at gmail.com

Hi,

I profiled STL containers in Chrome on Android and found that std::deque
(std::queue, std::stack) wastes considerable amount of memory because of its
4096-byte block size. I'm proposing changing block size to 512 bytes and min
block length to 1.

More info in the doc:
https://docs.google.com/document/d/1PEuPnSW54LaoWpUIEAHobqGt9nbD2DgQ_W5DdlJOkJU/edit#

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20170327/840d0887/attachment.html>


More information about the llvm-bugs mailing list