<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Mon, Feb 17, 2014 at 9:53 PM, Jacob Hoffman-Andrews <span dir="ltr"><<a href="mailto:jsha@newview.org" target="_blank">jsha@newview.org</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div class="">> It might be the best idea: am I correct in believing you were thinking about<br>

> loading the list only when requested? Meaning that we query the list<br>
> directly in the sqlite DB when somebody is using the "Enable/disable" menu?<br>
<br>
</div>To be a little more precise - we already preload the list of host<br>
target patterns (e.g. "*.<a href="http://eff.org" target="_blank">eff.org</a>"), but not the rulesets. This change<br>
would match against the host patterns and then load from the sqlite DB<br>
any that weren't already loaded.<br>
<br>
The search would then be done against the in-memory list of host<br>
patterns, which includes user-generated rules.<br>
</blockquote></div><br></div><div class="gmail_extra">Wouldn't it create problems when you have multiple rules for the same target? Even if they're not supposed to be there, they are, and I don't think it's possible to remove them entirely.<br>

<br></div><div class="gmail_extra">I don't know exactly how it works, I'm just asking. If what happens is the SQL equivalent to "fetch all rule names that match this target host"., my consideration doesn't apply :)<br>

<br></div><div class="gmail_extra">The only part that worries me is the "and then load from the sqlite DB", because it doesn't contain (AFAIK) the user-generated rules.<br></div><div class="gmail_extra">Or (probably) I'm missing something.<br>

<br></div><div class="gmail_extra">Claudio<br></div></div>