Skip to content

Commit fea6b33

Browse files
committed
Set a smaller LRU rule cache size
After some testing, it's super hard to hit 2,000 entries. We'll play it safer with lower-ram systems and limit this to 1,000 for now. Signed-off-by: Nick Semenkovich <semenko@alum.mit.edu>
1 parent 3231011 commit fea6b33

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

chromium/rules.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// A cache for potentiallyApplicableRulesets
22
// Size chosen /completely/ arbitrarily.
3-
var ruleCache = new LRUCache(2048);
3+
var ruleCache = new LRUCache(1000);
44

55
function Rule(from, to) {
66
//this.from = from;

0 commit comments

Comments
 (0)