mirror of
https://github.com/gorhill/uBlock.git
synced 2026-03-11 09:04:36 +00:00
Using pairs of integers allows the use of a
single integer-only array to store lists of
string indices associated to a specific
hostname.
Memory usage of instances of HostnameBasedDB
as per Chromium's heap snaphshot (bytes):
Before:
2,459,256 => specific cosmetic filters
944,152 => scriptlet filtering
736
---------
3,404,144
After:
1,947,448 => "
757,936 => "
632
---------
2,706,016
Ultimately, using 2 integers for each entry
instead of a single one is still worth it
because this allows the use of one single
integer-only array instead of having to use
an array of arrays for hostnames which have
multiple entries.
|
||
|---|---|---|
| .. | ||
| _locales | ||
| css | ||
| img | ||
| js | ||
| lib | ||
| web_accessible_resources | ||
| 1p-filters.html | ||
| 3p-filters.html | ||
| about.html | ||
| advanced-settings.html | ||
| asset-viewer.html | ||
| background.html | ||
| cloud-ui.html | ||
| dashboard.html | ||
| document-blocked.html | ||
| dyna-rules.html | ||
| epicker.html | ||
| logger-ui.html | ||
| popup.html | ||
| settings.html | ||
| shortcuts.html | ||
| whitelist.html | ||