Brave's new adblock engine cuts memory usage by 75% across all platforms

Brave's new adblock engine cuts memory usage by 75% across all platforms

Brave has overhauled its Rust-based adblock engine, cutting memory usage by 75% across Android, iOS, and desktop. With the default filter set, users see around 45 MB less memory use, and the savings increase for anyone who enables extra blocklists.

The team refactored the engine to store roughly 100,000 default filters in a zero copy binary format using FlatBuffers. It also switched some parts to stack-allocated vectors, reducing memory allocations by 19% and improving filter list build time by about 15%, while tokenizing common regular expression patterns improved matching speed by 13%.On desktop, sharing resources between engine instances saves about 2 MB per instance, and storage changes cut internal resource usage by 30%.

These improvements are available in Brave 1.85, with additional optimizations planned for 1.86, and Brave says the lighter built-in blocker should help battery life and multitasking, especially on mobile and older hardware, while remaining unaffected by Manifest V3.

by Mauricio B. Holguin

cz
ddnnOpenSourceSoftware
du
city_zen found this interesting
Brave iconBrave
  1167
  • ...

Brave is a web browser designed for speed, security, and privacy, featuring built-in ad blocking, privacy controls, and global tracking protections. It optimizes data usage, speed, and battery life. Brave is Chromium-based and supports TOR for enhanced privacy. Rated 4.1, it stands out for its commitment to user privacy and efficient browsing experience.

Comments

SleipnirTheHorse
1

As Open-Source gets better the Big Industries will become more and more trying to compete with it.

Navi
1

Not a fan of Brave because their shady practices but hopefully this will help other ad blockers unless Brahe's ad blocker is already just still inferior but I don't know if it is or isn't.

4 replies
Clippy

I think you would have a difficult time finding a browser that has been around for a while without 'shady practices'. Brave's ad blocker is inspired by UBO but with teeth because its baked into the browser as opposed to being limited as an extension.

Navi

@Clippy I mean their whole crypto scheme for starters.

Clippy

My only point is that most browsers have their own scandals

Shaz Shah

I recall the crypto awards for seeing ads was opt-in. Has this changed? I'm very curious to know what current practices from Brave are shady. Are you able to point me to up-to-date materials?

city_zen
4

It'd be interesting to know how this new native Brave adblock engine compare, resource usage-wise, to a relatively standard Chromium browser running uBlock Origin Lite or even Firefox running uBlock Origin. I'm not an expert but it is my understanding that Raymond Hill has put A LOT of work over the years into making both uBO and uBOL as efficient as possible

1 reply
Tubby 9417

Ublock Origin being limited as an extension written in JavaScript, Brave's solution has a lot more ground to keep growing as the fastest adblocker available, being written in Rust which is a modern and compiled language focused on memory safety and performance.

I would switch to Brave on mobile if only I could use the Brave integrated adblocker to select elements as easily as I can do with Ublock Origin on Firefox.

Gu