Skip to content
This repository has been archived by the owner on Jul 21, 2021. It is now read-only.

[Performance] Implement ability to snapshot memory to improve load times #935

Closed
2 tasks done
gorhill opened this issue Jan 30, 2018 · 1 comment
Closed
2 tasks done

Comments

@gorhill
Copy link
Owner

gorhill commented Jan 30, 2018

Memory snapshots (aka selfies) are not implemented in uMatrix -- unlike with uBO.

Implement:

  • Hosts files selfie
  • Public Suffix List selfie

This should improve load times, and memory usage, as seen with uBO.

@gorhill
Copy link
Owner Author

gorhill commented Jan 30, 2018

Benchmark is launch time with all stock hosts files selected, 84,857 distinct hostnames (8,322 duplicates were rejected but still needed parsing).

Before, 718.2 ms:
a

After, 127.6 ms:
a

When loading from selfies, the peak memory at launch time is vastly reduced as per Chromium's Task manager: from slightly over 60 MB (garbaged-collected to ~32 MB) to 28 MB (garbage-collected to ~26 MB).

Noxgrim pushed a commit to Noxgrim/uMatrix that referenced this issue Dec 29, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant