Changes

Jump to: navigation, search

User:Sspitzer/GlobalFrecency

1,040 bytes added, 02:03, 7 January 2008
no edit summary
unvisited bookmarks from previous versions will be hidden until visited, but we want them to show up in ac. for stuff we really want hidden, set frecency to 0, like place: and unvisited livemark items. (is there more?)
x24)
watch out, don't calculate frecency on history import. instead, set to -1 and come back later on idle.
nsNavHistory::AddPageWithVisit(), passing PR_FALSE for aCalculateFrecency to InternalAddNewPage()
 
25)
 
improved mDBOldFrecnecy query, explain why to deitrich
 
26)
 
explain this:
 
XXX frecency for 2745 [http://quality-drupal.stage.mozilla.com/community] is [3280]
XXX recalc for 2745 [http://quality-drupal.stage.mozilla.com/community] is 32800 vs 3280 and 164 vs 164
 
 
// not the same logic above, as a single visit could not both
// a bookmark visit and a typed visit. but when estimating a frecency
// for a place that doesn't have any visits, this will make it so
// something bookmarked and typed will have a higher frecency than
// something just typed or just bookmarked.
if (aIsBookmarked)
bonus = mUnvisitedBookmarkBonus;
if (aTyped)
bonus += mUnvisitedTypedBonus;
// assume "now" as our ageInDays, so use the first bucket
// note, when we recalculate "old frecencies" (see mDBOldFrecencies)
// this frecency value could be off by an order of
// (mFirstBucketWeight / mDefaultBucketWeight)
pointsForSampledVisits = mFirstBucketWeight * ((bonus + 100.0) / 100.0);
234
edits

Navigation menu