Opened 5 years ago

Last modified 20 months ago

#495 closed change

[meta] Filter Hit Statistics Tool — at Version 1

Reported by: trev Assignee:
Priority: P2 Milestone:
Module: Unknown Keywords: 2014q4, meta
Cc: famlam, mapx, fiaefuzz, fhd, sebastian, kzar Blocked By: #394, #395, #396
Blocking: Platform: Firefox
Ready: no Confidential: no
Tester: Unknown Verified working: no
Review URL(s):

Description (last modified by trev)

Background

We currently have to ship a growing file with updated filter data. It contains a lot of unused or outdated filters, either because ad implementation changed or websites has been shut off. We are carrying a lot of "waste" in this file which slowly decreases performance.

What to change

We need a tool which extracts relevant data from a large enough sample of ABP users and then analyses filter hit statistics over the whole sample. In the end, the tool should show us which filters can be erased (because of near zero usage).

Users should be able to opt-in into this and send sufficiently anonymized hit statistics to us. We also need to decide whether/how we will ask users to opt in.

Things to consider:

  • We are currently only saving filter hit statistics in Firefox so implementing this in Firefox first is the most logical choice.
  • Private browsing mode: we aren't saving any hit statistics there, meaning that we probably don't want to show the opt-in option for users using private browsing mode permanently. Same goes for users who disabled hit statistics altogether via "Count filter hits" option in Firefox.
  • Clearing browsing history also clears hit statistics, meaning that we probably don't want to show the opt-in option for users clearing history on shutdown either.
  • Moving filter hit statistics out of patterns.ini and into a separate file might be a good idea, the hit count is already responsible for much of the file size there.
  • Sebastian suggested using Nginx Upload Module to receive data. IMHO that's premature optimization, we will unlikely get so many submissions that a regular FCGI script cannot handle them.


Change History (1)

comment:1 Changed 5 years ago by trev

  • Description modified (diff)
Note: See TracTickets for help on using tickets.