sage icon indicating copy to clipboard operation
sage copied to clipboard

Allow background feed checking to be disabled

Open petea opened this issue 11 years ago • 12 comments

We need a pref to disable background feed checking.

petea avatar Jun 26 '13 14:06 petea

This is should be a bug because auto polling of feeds is a new feature in 1.5.

zoowar avatar Jul 02 '13 19:07 zoowar

+1

peclik avatar Jul 03 '13 06:07 peclik

I disabled it and submitted a pull request until it can get a real user preference. I really dislike that feature.

scott-42 avatar Jul 16 '13 05:07 scott-42

Sage keeps locking up my browser for several seconds at a time. Disabling Sage solves the problem. Perhaps this auto-polling is related? (will attempt to mod code and test.) Problem with: FF 22 and Sage 1.5.1 or 1.5.2b4

BrockA avatar Aug 05 '13 07:08 BrockA

Modifying SageUpdateChecker.jsm to stub out the auto checks appears to solve the freezing Firefox problem. Also stubbed out the data reporting functions in SageMetrics.jsm. What the heck?!!

BrockA avatar Aug 05 '13 08:08 BrockA

Does the unresponsiveness happen multiple times while Sage is checking in the background or just once in the beginning?

petea avatar Aug 05 '13 13:08 petea

With the update-check code in, The browser is much slower to start. Also periodically (I guess it could be an hour apart, like the code suggests), the browser will all but stop and the CPU activity will rail at 100%.

Stubbing out that code fixes the issue. (I also stubbed out the "metrics" code.) Been running several hours now with the stubbed code. Restarted FF a couple of times (restoring previously disabled add-ons), FF starts much faster and I have not noticed any periodic freezes.

The freezes lasted at least 30 seconds and some may have been closer to 2 minutes. I have over 40 RSS feeds and 4 of them are often slow to load.

BrockA avatar Aug 05 '13 13:08 BrockA

During these freezes, was the UI totally blocked or just sluggish? Can you tell me what OS you're using?

If you're handy with JavaScript, you might try adding a delay of a few seconds in between each feed load in SageUpdateChecker.jsm. That may help reduce the sluggishness.

petea avatar Aug 05 '13 14:08 petea

FF UI would be totally blocked for 5 for 10 seconds within the "freeze" period. Task manager would even say the window was "Not Responding" Just very sluggish for the rest of a given freeze period.

This is on a Win XP machine. Haven't tried to replicate it on other OS's.

As for further experimenting with SageUpdateChecker.jsm. I hesitate to do that right now for these reasons:

  1. The main problem is intermittent (probably at 60 minute intervals, in hindsight). Makes testing a bear.
  2. I lost quite a lot of time already, just narrowing the problem down to Sage.
  3. From my perspective, I already have a fix: Disable auto-checking. That's a feature I would shut off anyway.

I'll make a back-burner note to try adding a delay if the _manual_ feed check seems too sluggish (but I can tolerate a freeze or two on a manual check).

BrockA avatar Aug 05 '13 14:08 BrockA

Thanks for the feedback, it's very helpful. Something to keep in mind.. if you have any feeds that are particularly large, meaning > 100 items, that could be exacerbating things.

Long term, I'd like to move feed checking off the main thread, but for now, we'll need to work around the problem.

petea avatar Aug 05 '13 15:08 petea

A related ehancement would be to allow the startup delay to be set as a preference and the delay between checks to be set. My experiment of changing INITIAL_CHECK to 1 hr has dealt with one problem that I have. I have various scripts and activities that use firefox to perform a few quick tasks. Doing a feed check serves no purpose and needlessly generates traffic.

The heuristic of waiting a while separates these short tasks from the longer sessions where it is appropriate to start checking feeds.

Making the DELAY and INITIAL_CHECK configurable preferences lets people adjust to match their own needs.

rjhorniii avatar Feb 07 '16 21:02 rjhorniii

You know, I've always found autochecking incredibly annoying from a UX point of view. I'm trying to work through all my RSS feeds, and I'm halfway through, and then it starts autochecking and adding more new items....

On Sun, Feb 7, 2016 at 9:53 PM, rjhorniii [email protected] wrote:

A related ehancement would be to allow the startup delay to be set as a preference and the delay between checks to be set. My experiment of changing INITIAL_CHECK to 1 hr has dealt with one problem that I have. I have various scripts and activities that use firefox to perform a few quick tasks. Doing a feed check serves no purpose and needlessly generates traffic.

The heuristic of waiting a while separates these short tasks from the longer sessions where it is appropriate to start checking feeds.

Making the DELAY and INITIAL_CHECK configurable preferences lets people adjust to match their own needs.

— Reply to this email directly or view it on GitHub https://github.com/petea/sage/issues/100#issuecomment-181129664.

AlexHarrowell avatar Feb 09 '16 09:02 AlexHarrowell