Use a more suitable storage for the timezone table.
Creating a runtime table of std::string objects, just to copy those into a map, is not optimal from a runtime or footprint point of view. Making the table use raw char pointers shrinks the code and data by 75%, from 36 KB to 10 KB (clang, Linux, 64 bit content_shell). clang: Total change: -27266 bytes ========================== 2 added, totalling +8448 bytes across 1 sources 774 removed, totalling -36401 bytes across 2 sources 1 grown, for a net change of +687 bytes (481 bytes before, 1168 bytes after) across 1 sources R=estade@chromium.org,mark@chromium.org BUG= Review URL: https://codereview.chromium.org/573623003 Cr-Commit-Position: refs/heads/master@{#297821}
Showing
Please register or sign in to comment