[rekonq] Re: Review Request: Items in the completionlist are sorted by visit count instead of last visit date

Benjamin Poulain ikipou at gmail.com
Sun Jan 16 18:28:14 CET 2011



> On Jan. 15, 2011, 10:53 p.m., Benjamin Poulain wrote:
> > src/history/historymanager.h, line 79
> > <http://git.reviewboard.kde.org/r/100396/diff/1/?file=7140#file7140line79>
> >
> >     Just an idea...
> >     What about a weigthed sum of both to determine the order?
> >     
> >     With an absolute measure of either one you can end up in those situations:
> >     
> >     priority visit:  a web site visited 3 times 2 months ago will appear before something you saw yersterday
> >     priority date: something you saw yesterday appear before something you look every day
> >     
> >     So it might be nice to take both into account?
> 
> Lionel Chauvin wrote:
>     I tried:
>             return (visitCount - other.visitCount) + dateTime.daysTo(other.dateTime) > 0;
>     but it doesn't work fine.
>     Any idea ?

What about each item as:
qreal ::relevance() const;

Computed as : ln(visitCount) - ln(dateSinceLastVisit)? (count be negative...).
So we have equal relevance with exponential decay? We can then weight one or the other to favor visit count or date?


- Benjamin


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
http://git.reviewboard.kde.org/r/100396/#review919
-----------------------------------------------------------


On Jan. 15, 2011, 8:23 p.m., Lionel Chauvin wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> http://git.reviewboard.kde.org/r/100396/
> -----------------------------------------------------------
> 
> (Updated Jan. 15, 2011, 8:23 p.m.)
> 
> 
> Review request for rekonq.
> 
> 
> Summary
> -------
> 
> Items in the completionlist are sorted by visit count instead of last visit date
> 
> 
> Diffs
> -----
> 
>   src/history/historymanager.h a4099de 
> 
> Diff: http://git.reviewboard.kde.org/r/100396/diff
> 
> 
> Testing
> -------
> 
> 
> Thanks,
> 
> Lionel
> 
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.kde.org/pipermail/rekonq/attachments/20110116/c07328a7/attachment-0001.htm 


More information about the rekonq mailing list