DescriptionThis patch reduces the initial memory footprint by ~3.8 MB on V8 by optimizing the memory layout of filter text containing very long (1,000+ characters) domains.
To test this patch:
1. Do a fresh install of ABP built from source, let the first-run page open up, open Task Manager in Chrome and close all tabs
2. Rebuild from source, wait for the extension to load, wait a few seconds for GC to kick in, and observe the "live" JavaScript memory in Task Manager
3. Apply the patch and repeat step 2
In step 2, the memory used (heap) should be ~40,500 KB. In step 3, it should be down to ~36,500 KB.
Patch Set 1 : #Patch Set 2 : Remove check in lib/filterClasses.js #Patch Set 3 : Make domains parameter nullable and optional #
MessagesTotal messages: 6
|