]> sourceware.org Git - systemtap.git/commit
string_ref cont'd, considering token::msg
authorFrank Ch. Eigler <fche@redhat.com>
Fri, 7 Aug 2015 19:43:14 +0000 (15:43 -0400)
committerAbegail Jakop <ajakop@redhat.com>
Tue, 18 Aug 2015 17:24:15 +0000 (13:24 -0400)
commit174b1425ef72c6a7eb6bc77588e5ca3a7a1c95da
tree85ef687142b9000bcb10c719165dd760afced0a1
parenteadd685c7d44342ebee8dc2959cbc1e11187164b
string_ref cont'd, considering token::msg

Experimentation indicates that the sizeof(interned_string)=24
is so much larger than that of an empty sizeof(std::string)=8
that for mostly-empty slots it's a loss!  A 1-byte std::string
causes a 26-byte malloc, so the interned_string is probably
good for nonempty strings.
parse.cxx
parse.h
This page took 0.024835 seconds and 5 git commands to generate.