On 22 February 2012 08:36, Troels Henriksen <at...@sigkill.dk> wrote:
> Calvin Morrison <mutanttur...@gmail.com> writes:
>
>> But, since we write out to the cookie jar frequently, wouldn't it be
>> inefficient to be constantly re reading (and reparsing) the entire
>> cookie file?
>
> Yes, but we're already doing that, so apparently it's not a big problem
> in practice.

I was clear that we were constantly writing to the cookie jar. I was
not clear that we were manually rereading it each time, now i see that
the getcookies function is doing it. That seems rather inefficient
also because on every request signal emitted we are reloading the
cookie jar. That means it's not only every time we reload a page, but
whenever the page requests new info (eg facebook while scrolling
through the feed)

What is a better solution, or is that the best solution?

Calvin

Reply via email to