X AlgorithmPortuguês
Back to overview

05

Cheap filters first

Before paying the cost of running ML, the obvious removals happen: duplicates, posts that are too old, your own posts, posts from people you’ve blocked or muted, posts containing your muted keywords, and posts you’ve already seen.

The bouncer’s first sweep — anyone clearly not getting in tonight is turned away before the headliner shows up.

Under the hood: Each filter is one small piece of code with one job. Composable and cheap to run. home-mixer/filters/

A little deeper

The order matters. Cheap filters run first because they reduce the pool of posts that go through the expensive ML step.

These rules are also where personal controls (mutes, blocks, muted keywords) actually take effect.

View on GitHubMade by Henrique Martins