Brave overhauls adblock engine, cutting its memory consumption by 75%
This is the 36th post in an ongoing series describing new privacy features in Brave. This post describes work done by Mikhail Atuchin (Sr. Staff Engineer), Pavel Beloborodov (Sr. Software Engineer) and Anton Lazarev (Staff Adblock Engineer). It was written by Shivan Kaul Sahib (VP, Privacy and Security).
Brave has overhauled its Rust-based adblock engine to reduce memory consumption by 75%, bringing better battery life and smoother multitasking to all users. The upgrade represents roughly 45 MB of memory savings for the Brave browser on every platform (Android, iOS and desktop) by default, and scales even higher for users with additional adblocking lists enabled. These performance boosts are live in Brave v1.85, with additional optimizations coming in v1.86.
As announced in June and October last year, we achieved this major memory milestone by iteratively refactoring the adblock-rust engine to use FlatBuffers, a compact and efficient storage format. This architectural transition allowed us to move the roughly 100,000 adblock filters shipped by default from standard, heap-allocated Rust data structures (such as Vecs, HashMaps, and structs) into a specialized, zero-copy binary format.
Along the way, we completed several other key performance optimizations (some of these are coming in v1.86):
- Memory management: Used stack-allocated vectors to reduce memory allocations by 19% and improved building time by ~15%.
- Matching speed: Improved filter matching performance by 13% by tokenizing common regex patterns.
- Sharing resources: Resources are shared between instantiations of adblock engines, saving ~2 MB of memory on desktop.
- Storage efficiency: Optimized internal resource storage memory by 30%.
Saving 45+ MB of memory is a significant milestone in the world of browser performance and a massive win for users on mobile and older hardware. While Brave already improves performance on the Web by blocking invasive ads and trackers, our latest engineering effort ensures that our own built-in protections are as lightweight and invisible as possible. Unlike adblocking in other browsers, Brave’s adblocking engine is built into the browser and maintained by our privacy team. Such deep optimizations are impossible for extension-based blockers, which are restricted by browser extension APIs and sandboxing. This native architecture is also why Brave’s own ad and tracker blocking is entirely unaffected by Manifest V3.
This performance boost is the culmination of several months of in-depth cross-team engineering work between our performance and privacy teams. It marks a significant leap in the browser’s efficiency and ensures that we continue shipping best-in-class privacy to over 100 million users.

