[Forensics-changes] [yara] 130/160: Optimize mapped files for sequential access
Hilko Bengen
bengen at moszumanska.debian.org
Sat Jul 1 10:29:26 UTC 2017
This is an automated email from the git hooks/post-receive script.
bengen pushed a commit to annotated tag v3.4.0
in repository yara.
commit ee0069c47c5e95f2a06d5d1d04acd5d7d6e169ab
Author: Victor M. Alvarez <plusvic at gmail.com>
Date: Fri May 15 16:35:17 2015 +0200
Optimize mapped files for sequential access
---
libyara/filemap.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/libyara/filemap.c b/libyara/filemap.c
index 27220d1..6f63765 100644
--- a/libyara/filemap.c
+++ b/libyara/filemap.c
@@ -211,6 +211,8 @@ YR_API int yr_filemap_map_fd(
return ERROR_COULD_NOT_MAP_FILE;
}
+
+ madvise(pmapped_file->data, pmapped_file->size, MADV_SEQUENTIAL);
}
else
{
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/forensics/yara.git
More information about the forensics-changes
mailing list