configure pywikidiff2 cache limits.
This commit is contained in:
@@ -330,15 +330,17 @@ class WikiDiffMatcher:
|
||||
):
|
||||
self.tokenizer = tokenizer or TOKENIZER
|
||||
|
||||
|
||||
|
||||
class Processor(DiffEngine.Processor):
|
||||
def __init__(self, tokenizer=None):
|
||||
self.tokenizer = tokenizer or TOKENIZER
|
||||
self.last_tokens = []
|
||||
self.previous_text = ""
|
||||
self.differ = pywikidiff2.pywikidiff2(
|
||||
numContextLines=1000000, moved_paragraph_detection_cutoff=200000
|
||||
numContextLines=1000000,
|
||||
moved_paragraph_detection_cutoff=200000,
|
||||
words_cache_capacity=10000,
|
||||
diff_cache_capacity=10000,
|
||||
stats_cache_capacity=100000,
|
||||
)
|
||||
self.last_diff = None
|
||||
|
||||
|
||||
Reference in New Issue
Block a user