From 32bc05ddfd2af8b18eb14d968a9b96c1ebca8013 Mon Sep 17 00:00:00 2001 From: Nathan TeBlunthuis Date: Fri, 1 Aug 2025 19:30:46 -0700 Subject: [PATCH] set cache limits. --- src/wikiq/__init__.py | 6 +++--- src/wikiq/wiki_diff_matcher.py | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/wikiq/__init__.py b/src/wikiq/__init__.py index e325678..31db834 100755 --- a/src/wikiq/__init__.py +++ b/src/wikiq/__init__.py @@ -493,9 +493,9 @@ class WikiqParser: num_context_lines=1000000, max_word_level_diff_complexity=-1, moved_paragraph_detection_cutoff=-1, - words_cache_capacity=2500, - diff_cache_capacity=2500, - stats_cache_capacity=2500, + words_cache_capacity=5000, + diff_cache_capacity=5000, + stats_cache_capacity=5000, ) while not on_last_batch: diff --git a/src/wikiq/wiki_diff_matcher.py b/src/wikiq/wiki_diff_matcher.py index 24a1b57..8470f05 100644 --- a/src/wikiq/wiki_diff_matcher.py +++ b/src/wikiq/wiki_diff_matcher.py @@ -339,9 +339,9 @@ class WikiDiffMatcher: num_context_lines=1000000, max_word_level_diff_complexity=-1, moved_paragraph_detection_cutoff=-1, - words_cache_capacity=10000, - diff_cache_capacity=10000, - stats_cache_capacity=100000, + words_cache_capacity=5000, + diff_cache_capacity=5000, + stats_cache_capacity=5000, ) self.last_diff = None