Skip to content

WIP: Lazy initialization

This MR is based on combined by keyword MR https://gitlab.com/eyeo/adblockplus/adblockpluscore/-/merge_requests/480 but it lazily initialize filters only on match.

The way to do so, currently, is to store filters by reference, not text, so that these can be lazily initialized.

However, there are at least 8 errors I should fix and test, but the heap for EL+AA here goes down to 90MB on bootstrap, which is a huge win.

This MR is not intended to land as is, but it might be useful to brainstorm a bit over this pattern.

Merge request reports