]> git.sesse.net Git - plocate/commit
Replace std::string with std::vector<unsigned char> when encoding posting lists.
authorSteinar H. Gunderson <steinar+git@gunderson.no>
Thu, 11 Feb 2021 09:09:38 +0000 (10:09 +0100)
committerSteinar H. Gunderson <steinar+git@gunderson.no>
Thu, 11 Feb 2021 09:09:38 +0000 (10:09 +0100)
commit9afdc095fdddb37926c075d8700cbc9e928be1e1
tree2dddade6d094f5b0b8a13c9eb3a4631a17bbb809
parentdfa0744dde7ac45840573a6d6835156ab62fd5ff
Replace std::string with std::vector<unsigned char> when encoding posting lists.

This is a ~0.5–1% win since we never use the short-string optimization,
and the vector fits better in cache.
database-builder.cpp