]> git.sesse.net Git - plocate/commitdiff
Inline a function, for ~10% faster building.
authorSteinar H. Gunderson <steinar+git@gunderson.no>
Sat, 3 Oct 2020 09:55:54 +0000 (11:55 +0200)
committerSteinar H. Gunderson <steinar+git@gunderson.no>
Sat, 3 Oct 2020 09:55:54 +0000 (11:55 +0200)
plocate-build.cpp

index b409bb820645f00dd1e3ab58857c7c0a8225a519..0a19c1fbab84da487a020bd372c189163ae63ff8 100644 (file)
@@ -72,7 +72,7 @@ struct db_directory {
 
 class PostingListBuilder {
 public:
-       void add_docid(uint32_t docid);
+       inline void add_docid(uint32_t docid);
        void finish();
 
        string encoded;