Changes

Jump to: navigation, search

User:Sspitzer/GlobalFrecency

1,600 bytes added, 02:27, 11 January 2008
no edit summary
'''info about where to find the try server builds'''
https://build.mozilla.org/tryserver-builds/2008-01-10_16:09-sspitzer@mozilla.com-1200010016/
'''Big picture view of the changes:'''
1) unvisited bookmarks will appear in url bar autocomplete (ac) results. this means if you clear private data, if you have bookmarks, url bar ac still has something to return upon typing.
if a highly ranked (by frececny) site was visited more than 4 days ago, unlike before, it will appear in the first set of results. so say you visit http://wiki.mozilla.org/WeeklyUpdates once a week for the past year, but it's been 7 days since your last visit. before, because it was more than 4 days old, it would not be in the first chunk of results.
'''Additonal details:'''
1) Unlike before, unvisited bookmarks should appear in ac results
7) When inserting a bookmark, we attempt to calculate a frecency for it. This will impact the performance of bookmark import and also fx 2 - > fx 3 migration. (spin off bug coming about how to deal with it.)
8) for how we calculate a freceny for a site, see http://wiki.mozilla.org/User:Mconnor/PlacesFrecency (and option 3). I use the 10 most recent visits. , and this is pref controlled. note, if we don't have any visits for a siteas all are the buckets, I make an attempt to estimate the frecency. more on this in a spin off bug (including when we should estimate weights and when we should notbonus values.)
9) After only 5 seconds of idleif we don't have any visits for a site, I'll make an attempt to recalculate the top 100 invalid frecencies (ordered by visit count) and estimate the top 100 "old" frecencies (order by frecency descending but the last visit date is older than 4 days). more on this in a spin off bug (The 5 second number will increase including when we should estimate and the 100 number will decrease before I landwhen we should not.). 4 days is not hard coded, it's really older than the first "bucket".
10) after clearing all private dataAfter only 5 seconds of idle, all remaining places get I'll attempt to recalculate the frecency of -1, except for livemark items top 100 invalid frecencies (ordered by visit count) and the top 100 "place:old" urls frecencies (which should get order by frecency 0descending but the last visit date is older than 4 days). 4 days is not hard coded, it's really older than the first "bucket".
For a list of prefs that can be used to tune The 5 second number will increase and the algorithm, see https://bugzilla100 number will decrease before I land.mozilla.org/attachment.cgi?id=296271
11) after clearing all private data, all remaining places get the frecency of -1, except for livemark items and "place:" urls (which should get frecency 0). '''current list of prefs to tune ''' The names and default values will most likely be changing. I wouldn't recommend tuning these yet. I'll elaborate on what each pref does later on in this document. +// the (maximum) number of the recent visits to sample+// when calculating frecency+pref("browser.frecency.numVisits", 10);++// buckets (in days) for frecency calculation+pref("browser.frecency.firstBucketCuttoff", 4);+pref("browser.frecency.secondBucketCuttoff", 14);+pref("browser.frecency.thirdBucketCuttoff", 31);+pref("browser.frecency.fourthBucketCuttoff", 90);++// weights for buckets for frecency calculations+pref("browser.frecency.firstBucketWeight", 100);+pref("browser.frecency.secondBucketWeight", 70);+pref("browser.frecency.thirdBucketWeight", 50);+pref("browser.frecency.fourthBucketWeight", 30);+pref("browser.frecency.defaultBucketWeight", 10);++// bonus (in percent) for visit transition types for frecency calculations+pref("browser.frecency.embedVisitBonus", 0);+pref("browser.frecency.linkVisitBonus", 120);+pref("browser.frecency.typedVisitBonus", 200);+pref("browser.frecency.bookmarkVisitBonus", 140);+pref("browser.frecency.downloadVisitBonus", 0);+pref("browser.frecency.permRedirectVisitBonus", 0);+pref("browser.frecency.tempRedirectVisitBonus", 0);+pref("browser.frecency.defaultVisitBonus", 0);++// bonus (in percent) for place types for frecency calculations+pref("browser.frecency.unvisitedBookmarkBonus", 140);+pref("browser.frecency.unvisitedTypedBonus", 200); '''Additional notes (need to clean these up, log spin off bugs, etc). These are mostly for dietrich so he knows what I've done and why and the known issues.'''
1)
234
edits

Navigation menu