1
0
mirror of https://github.com/gilbertchen/duplicacy synced 2025-12-15 07:43:21 +00:00

store compiled regex patterns for performance optimization

This commit is contained in:
Jeff Thompson
2017-09-14 23:21:30 -05:00
parent 3cf3ad06fa
commit 805f6fd15d
3 changed files with 46 additions and 19 deletions

View File

@@ -98,6 +98,8 @@ func CreateSnapshotFromDirectory(id string, top string) (snapshot *Snapshot, ski
patterns = append(patterns, pattern)
}
LOG_DEBUG("REGEX_DEBUG", "There are %d compiled regular expressions stored", len(RegexMap))
LOG_INFO("SNAPSHOT_FILTER", "Loaded %d include/exclude pattern(s)", len(patterns))
if IsTracing() {