aboutsummaryrefslogtreecommitdiff
path: root/src/util/query.cc
diff options
context:
space:
mode:
authorAdrian Kummerlaender2017-10-07 15:45:37 +0200
committerAdrian Kummerlaender2017-10-07 15:45:37 +0200
commit51a422f161e7e7cc5b1093a12e004165754ec1b9 (patch)
tree5c23a69b197e614424aba3e14f59be87de6a4fac /src/util/query.cc
parent574e79243648debf57a0d92653bd0df83398e772 (diff)
downloadDictzipQuery-51a422f161e7e7cc5b1093a12e004165754ec1b9.tar
DictzipQuery-51a422f161e7e7cc5b1093a12e004165754ec1b9.tar.gz
DictzipQuery-51a422f161e7e7cc5b1093a12e004165754ec1b9.tar.bz2
DictzipQuery-51a422f161e7e7cc5b1093a12e004165754ec1b9.tar.lz
DictzipQuery-51a422f161e7e7cc5b1093a12e004165754ec1b9.tar.xz
DictzipQuery-51a422f161e7e7cc5b1093a12e004165754ec1b9.tar.zst
DictzipQuery-51a422f161e7e7cc5b1093a12e004165754ec1b9.zip
Introduce IndexFile class
Diffstat (limited to 'src/util/query.cc')
-rw-r--r--src/util/query.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/util/query.cc b/src/util/query.cc
index f210613..f71b257 100644
--- a/src/util/query.cc
+++ b/src/util/query.cc
@@ -15,6 +15,7 @@ std::vector<std::string> get_lines_starting_with(
return std::vector<std::string>{};
}
+
posix_fadvise(fileno(file), 0, 0, 1); // FDADVICE_SEQUENTIAL
std::vector<std::string> result;