user.js icon indicating copy to clipboard operation
user.js copied to clipboard

disable freceny?

Open Thorin-II opened this issue 9 years ago • 11 comments

snip

Thorin-II avatar May 23 '17 17:05 Thorin-II

From 1st link:

// the (maximum) number of the recent visits to sample when calculating frecency

pref("browser.frecency.numVisits", 10);

It seems to affect the urlbar list.

Atavic avatar May 23 '17 17:05 Atavic

That one pref that he quoted has to do with some cache half-life experiments and nothing to do with the places.frecency.* prefs. The user.js already clears history on shutdown by default and we shouldn't mess with people's bookmarks IMHO, so no need to go there.

earthlng avatar May 23 '17 18:05 earthlng

frecency (frequency + recency)

earthlng avatar May 24 '17 13:05 earthlng

Did some search and browser.cache.frecency_experiment -1 does not disable anything.

if at -1, no experiment is run and we use the preferred value for frecency (6h) See: bugzilla 986728

So I keep a low fingerprint with:

browser.cache.frecency_experiment 4
*.frecency.*Bonus 0
*.frecency.*Weight 1

The first value of 4 gives low frequency, while browser.cache.frecency_half_life_hours 6 is a decay-time and an high value means low recency

Atavic avatar Oct 28 '18 13:10 Atavic

browser.cache.frecency_experiment is a dead pref since FF59. It's even listed in the user.js under 9999

earthlng avatar Oct 28 '18 15:10 earthlng

@earthlng

browser.cache.frecency_experiment is a dead pref since FF59. It's even listed in the user.js under 9999

I believe you since you're generally on top of things but how did you learn this? I must be 'doing it wrong' or something since I typically run entries through DXR to check if they're still listed. If so then I've assumed they're still active, and vice versa. Is this not necessarily true?

Tell me how you've learned that browser.cache.frecency_experiment has been dead since v59? It's still listed on mozilla-central here and here and on mozilla-release here.

Not challenging what you're saying or anything, just genuinely curious how you find out such things.

grauenwolfe avatar Oct 28 '18 23:10 grauenwolfe

how did you learn this?

I must have searched for it on DXR and noticed it's not used anymore. The 3 places you linked are the pref definitions. That's why I wrote "dead pref": the pref still exists but the code that used it was removed, they just forgot to remove the pref. Since it was removed in FF59 you have to go back to esr52 on DXR to see what it looked like when it was still used. compare https://dxr.mozilla.org/mozilla-esr52/search?q=frecency_experiment and https://dxr.mozilla.org/mozilla-esr60/search?q=frecency_experiment

earthlng avatar Oct 29 '18 01:10 earthlng

^^ FYI from that point on it's easy to find the relevant bugzilla by

  • clicking the file where the pref was last used in esr52
  • in the navigation on the right click on log
  • change to "tip"
  • copy the most recent commit id since they're unique, in this case d6f37cd67e82
  • replace esr52 in the URL to esr60
  • ctrl+f and search for the commit id

in this case there were only 9 changes to that file since esr52 and the most recent change is "Remove the HTTP cache half-live experiment". It's not always that easy but you get the idea

earthlng avatar Oct 29 '18 01:10 earthlng

On some forks this entry is active.

Atavic avatar Oct 29 '18 15:10 Atavic

@earthlng Thanks for breaking it down. Your thoroughness and follow-through is pretty damn inspiring.

grauenwolfe avatar Oct 30 '18 23:10 grauenwolfe

@grauenwolfe you're welcome. Thanks for the compliment!

earthlng avatar Nov 02 '18 11:11 earthlng