Re: [dev] regarding surf and cookie handling
On 22 February 2012 08:36, Troels Henriksen <athas_AT_sigkill.dk> wrote:
> Calvin Morrison <mutantturkey_AT_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
Received on Wed Feb 22 2012 - 15:03:02 CET
This archive was generated by hypermail 2.3.0
: Wed Feb 22 2012 - 15:12:03 CET