Page MenuHomePhabricator

Optimize detection of standard lists and tables
Open, Needs TriagePublic

Description

Detection of standard lists and tables is handled by a chain of if statements.
Order the statements by descending probability to improve performance.

Raised in https://gitlab.wikimedia.org/repos/structured-data/section-topics/-/merge_requests/11#note_16492.

Tasks

  • compute frequency of unordered lists *, ordered lists #, and tables {|
  • update the if statement chain, most frequent item first
  • assess performance change