@lina An improved version would probably need database access to be performant enough to work.
I'm pretty sure this thing just "walks" your profile for the last 50 or so interactions and just scores based on that.
A complete ranking would take forever, but if you just fed it postgres it could do it pretty fast.