Move declaration after cache return

Signed-off-by: Nick Semenkovich <semenko@alum.mit.edu>
Remove silly global_rulesets

A "global_ruleset" would've been a totally wildcard rule, "*".

There are zero of these in the current code, and if there were, I imagine it'd be an error.

Signed-off-by: Nick Semenkovich <semenko@alum.mit.edu>
Replace a now empty concat w/ clone

Signed-off-by: Nick Semenkovich <semenko@alum.mit.edu>
Rearrange logic order

The exclusion is much more likely.

Signed-off-by: Nick Semenkovich <semenko@alum.mit.edu>
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>
Add a smaller cache for cookie domains

Useful as this is a hot path that blocks headers.

Signed-off-by: Nick Semenkovich <semenko@alum.mit.edu>
Tweak ruleset calculation

Stop building unused test rules for the TLD itself (e.g. www.example.*)

Also remove an intermediate varible assignment.

Signed-off-by: Nick Semenkovich <semenko@alum.mit.edu>
Rearrange cookie test loop to return earlier

For some reason, we were repeatedly testing that dozens of times...

Signed-off-by: Nick Semenkovich <semenko@alum.mit.edu>
Add back in TLD rule for google.*

I think this was matching anyway, but let's be paranoid and keep it here for now.

Signed-off-by: Nick Semenkovich <semenko@alum.mit.edu>
Update README to be more helpful
Merge branch 'ruleset-cleanups' of github.com:semenko/https-everywhere into semenko-ruleset-cleanups