Brave refurbishes Rust adblocking engine for reduced memory footprint
(2026/01/06)
- Reference: 1767738281
- News link: https://www.theregister.co.uk/2026/01/06/brave_refurbishes_rust_adblocking_engine/
- Source link:
Brave Software has reworked its browser's Rust-based adblock engine to make it significantly more memory efficient and perhaps more secure. So you get fewer ads now with fewer MB of RAM.
According to Shivan Kaul Sahib, VP of privacy and security for Brave, company software engineers have been able to reduce memory consumption by around 75 percent since the reengineering began last year.
"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," said Sahib in [1]a blog post .
[2]
The benefits of reduced memory consumption include improved battery life and smoother multitasking, while also leaving more memory for other applications.
[3]
[4]
Brave's initial refactoring effort, as of [5]June 2025 , saw the memory footprint shrink from 150 MB to 121 MB. By [6]October 2025 , memory usage went from 119 MB to 108 MB. Presently, Brave puts its browser's memory footprint at 104 MB in [7]version 1.85.118 , down from 162 MB in [8]version 1.79.118 , released May 2025.
When The Register examined Brave version 1.85.118 under macOS Tahoe (26.1), the browser memory footprint upon reinstallation showed 121 MB in the built-in Task Manager. After fiddling with settings to ensure the browser's Leo AI assistant was completely disabled and restarting, the footprint dropped to 106 MB.
[9]
We note, however, that Brave's own screenshot shows an increase in the memory footprint of the GPU process, from 52.2 MB to 81.9 MB between the two versions being compared.
"That is unrelated to the adblock engine memory improvements," Sahib told The Register in an email. "Such fluctuations in browser resource consumption across browser runs are extremely common; even the screenshot doesn't show exactly 45 MB of memory reduction, it actually shows a bigger decrease!
"Performance measurement is heavily dependent on statistical averaging across multiple runs (which is what our improvement numbers indicate) and we don't have any evidence of a GPU footprint regression internally."
[10]
Brave has been able to eke out greater memory efficiency by incorporating [11]FlatBuffers , a cross-platform serialization library initially created by Google for game development. It allows access to serialized data without unpacking or parsing – extra steps that add overhead.
"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," explained Sahib in his post.
[12]AWS raises GPU prices 15% on a Saturday, hopes you weren't paying attention
[13]Researchers poison stolen data to make AI systems return wrong results
[14]Claude devs complain about surprise usage limits, Anthropic blames expiring bonus
[15]ChatGPT is playing doctor for a lot of US residents, and OpenAI smells money
Company engineers have also been integrating other improvements like [16]stack-allocated vectors for better memory management, tokenizing common regex patterns for better filter matching performance, resource sharing among adblock engines, and [17]optimized resource memory storage .
Sahib said Brave's adblock-engine has led to better performance and battery life on mobile devices, pointing to a [18]series of [19]related [20]blog [21]posts .
"The upshot is that blocking ads and trackers significantly improves user experience around page loading since fewer resources have to be downloaded," he said. "Brave has also built [22]BatteryLab Device Evaluations for browser performance measurement across mobile devices."
Beyond the performance improvements, Rust has helped make Brave more secure.
"Rust makes entire classes of security and reliability bugs impossible," said Sahib. "Chromium (and so Brave) follows a Rule of Two for safely handling untrusted input from the Internet, and using a memory-safe language like Rust (for adblocking, or QR code generation) is a great way to increase trust in the safety of the browser."
Brave is not alone in its affinity for Rust code, popular these days because it manages to perform well while offering memory safety guarantees. Mozilla, where Rust was created, has implemented [23]Rust code in Firefox and more so in its browser engine spin-off project Servo. Google is [24]supporting the use of Rust in Chromium. And Microsoft is [25]applying Rust more broadly .
Brave is also [26]working on a variation of its browser [27]called Brave Origin . It will require a [28]one-time fee (but not on Linux) in exchange for the absence of sponsored images, Brave Rewards, Brave Wallet, Brave VPN, Leo, and telemetry. Security updates will be offered.
Sahib said Brave isn't yet ready to share a release date for Brave Origin. ®
Get our [29]Tech Resources
[1] https://brave.com/privacy-updates/36-adblock-memory-reduction/
[2] https://pubads.g.doubleclick.net/gampad/jump?co=1&iu=/6978/reg_software/applications&sz=300x50%7C300x100%7C300x250%7C300x251%7C300x252%7C300x600%7C300x601&tile=2&c=2aV2UCyxKUgfwiUgmI0xEbgAAAlI&t=ct%3Dns%26unitnum%3D2%26raptor%3Dcondor%26pos%3Dtop%26test%3D0
[3] https://pubads.g.doubleclick.net/gampad/jump?co=1&iu=/6978/reg_software/applications&sz=300x50%7C300x100%7C300x250%7C300x251%7C300x252%7C300x600%7C300x601&tile=4&c=44aV2UCyxKUgfwiUgmI0xEbgAAAlI&t=ct%3Dns%26unitnum%3D4%26raptor%3Dfalcon%26pos%3Dmid%26test%3D0
[4] https://pubads.g.doubleclick.net/gampad/jump?co=1&iu=/6978/reg_software/applications&sz=300x50%7C300x100%7C300x250%7C300x251%7C300x252%7C300x600%7C300x601&tile=3&c=33aV2UCyxKUgfwiUgmI0xEbgAAAlI&t=ct%3Dns%26unitnum%3D3%26raptor%3Deagle%26pos%3Dmid%26test%3D0
[5] https://x.com/brave/status/1935716280121610485
[6] https://x.com/brave/status/1984338120297562336
[7] https://community.brave.app/t/release-channel-1-85-118/647176
[8] https://community.brave.app/t/release-channel-1-79-118/621692
[9] https://pubads.g.doubleclick.net/gampad/jump?co=1&iu=/6978/reg_software/applications&sz=300x50%7C300x100%7C300x250%7C300x251%7C300x252%7C300x600%7C300x601&tile=4&c=44aV2UCyxKUgfwiUgmI0xEbgAAAlI&t=ct%3Dns%26unitnum%3D4%26raptor%3Dfalcon%26pos%3Dmid%26test%3D0
[10] https://pubads.g.doubleclick.net/gampad/jump?co=1&iu=/6978/reg_software/applications&sz=300x50%7C300x100%7C300x250%7C300x251%7C300x252%7C300x600%7C300x601&tile=3&c=33aV2UCyxKUgfwiUgmI0xEbgAAAlI&t=ct%3Dns%26unitnum%3D3%26raptor%3Deagle%26pos%3Dmid%26test%3D0
[11] https://crates.io/crates/flatbuffers
[12] https://www.theregister.com/2026/01/05/aws_price_increase/
[13] https://www.theregister.com/2026/01/06/ai_data_pollution_defense/
[14] https://www.theregister.com/2026/01/05/claude_devs_usage_limits/
[15] https://www.theregister.com/2026/01/05/chatgpt_playing_doctor_openai/
[16] https://users.rust-lang.org/t/rust-1-51-const-generics-examples/57426
[17] https://github.com/brave/adblock-rust/pull/517
[18] https://brave.com/blog/accurately-predicting-ad-blocker-savings/
[19] https://brave.com/blog/brave-one-dot-zero-performance-methodology-and-results/
[20] https://brave.com/blog/brave-android-one-eight-zero-plus-performance/
[21] https://brave.com/blog/improved-ad-blocker-performance/
[22] https://github.com/brave/blade?tab=readme-ov-file#blog-posts
[23] https://4e6.github.io/firefox-lang-stats/
[24] https://security.googleblog.com/2023/01/supporting-use-of-rust-in-chromium.html
[25] https://www.theregister.com/2025/12/24/microsoft_rust_codebase_migration/
[26] https://github.com/brave/brave-core/pull/31677
[27] https://x.com/BrendanEich/status/1948500509570023575
[28] https://x.com/BrendanEich/status/2006412918783619455?s=20
[29] https://whitepapers.theregister.com/
According to Shivan Kaul Sahib, VP of privacy and security for Brave, company software engineers have been able to reduce memory consumption by around 75 percent since the reengineering began last year.
"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," said Sahib in [1]a blog post .
[2]
The benefits of reduced memory consumption include improved battery life and smoother multitasking, while also leaving more memory for other applications.
[3]
[4]
Brave's initial refactoring effort, as of [5]June 2025 , saw the memory footprint shrink from 150 MB to 121 MB. By [6]October 2025 , memory usage went from 119 MB to 108 MB. Presently, Brave puts its browser's memory footprint at 104 MB in [7]version 1.85.118 , down from 162 MB in [8]version 1.79.118 , released May 2025.
When The Register examined Brave version 1.85.118 under macOS Tahoe (26.1), the browser memory footprint upon reinstallation showed 121 MB in the built-in Task Manager. After fiddling with settings to ensure the browser's Leo AI assistant was completely disabled and restarting, the footprint dropped to 106 MB.
[9]
We note, however, that Brave's own screenshot shows an increase in the memory footprint of the GPU process, from 52.2 MB to 81.9 MB between the two versions being compared.
"That is unrelated to the adblock engine memory improvements," Sahib told The Register in an email. "Such fluctuations in browser resource consumption across browser runs are extremely common; even the screenshot doesn't show exactly 45 MB of memory reduction, it actually shows a bigger decrease!
"Performance measurement is heavily dependent on statistical averaging across multiple runs (which is what our improvement numbers indicate) and we don't have any evidence of a GPU footprint regression internally."
[10]
Brave has been able to eke out greater memory efficiency by incorporating [11]FlatBuffers , a cross-platform serialization library initially created by Google for game development. It allows access to serialized data without unpacking or parsing – extra steps that add overhead.
"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," explained Sahib in his post.
[12]AWS raises GPU prices 15% on a Saturday, hopes you weren't paying attention
[13]Researchers poison stolen data to make AI systems return wrong results
[14]Claude devs complain about surprise usage limits, Anthropic blames expiring bonus
[15]ChatGPT is playing doctor for a lot of US residents, and OpenAI smells money
Company engineers have also been integrating other improvements like [16]stack-allocated vectors for better memory management, tokenizing common regex patterns for better filter matching performance, resource sharing among adblock engines, and [17]optimized resource memory storage .
Sahib said Brave's adblock-engine has led to better performance and battery life on mobile devices, pointing to a [18]series of [19]related [20]blog [21]posts .
"The upshot is that blocking ads and trackers significantly improves user experience around page loading since fewer resources have to be downloaded," he said. "Brave has also built [22]BatteryLab Device Evaluations for browser performance measurement across mobile devices."
Beyond the performance improvements, Rust has helped make Brave more secure.
"Rust makes entire classes of security and reliability bugs impossible," said Sahib. "Chromium (and so Brave) follows a Rule of Two for safely handling untrusted input from the Internet, and using a memory-safe language like Rust (for adblocking, or QR code generation) is a great way to increase trust in the safety of the browser."
Brave is not alone in its affinity for Rust code, popular these days because it manages to perform well while offering memory safety guarantees. Mozilla, where Rust was created, has implemented [23]Rust code in Firefox and more so in its browser engine spin-off project Servo. Google is [24]supporting the use of Rust in Chromium. And Microsoft is [25]applying Rust more broadly .
Brave is also [26]working on a variation of its browser [27]called Brave Origin . It will require a [28]one-time fee (but not on Linux) in exchange for the absence of sponsored images, Brave Rewards, Brave Wallet, Brave VPN, Leo, and telemetry. Security updates will be offered.
Sahib said Brave isn't yet ready to share a release date for Brave Origin. ®
Get our [29]Tech Resources
[1] https://brave.com/privacy-updates/36-adblock-memory-reduction/
[2] https://pubads.g.doubleclick.net/gampad/jump?co=1&iu=/6978/reg_software/applications&sz=300x50%7C300x100%7C300x250%7C300x251%7C300x252%7C300x600%7C300x601&tile=2&c=2aV2UCyxKUgfwiUgmI0xEbgAAAlI&t=ct%3Dns%26unitnum%3D2%26raptor%3Dcondor%26pos%3Dtop%26test%3D0
[3] https://pubads.g.doubleclick.net/gampad/jump?co=1&iu=/6978/reg_software/applications&sz=300x50%7C300x100%7C300x250%7C300x251%7C300x252%7C300x600%7C300x601&tile=4&c=44aV2UCyxKUgfwiUgmI0xEbgAAAlI&t=ct%3Dns%26unitnum%3D4%26raptor%3Dfalcon%26pos%3Dmid%26test%3D0
[4] https://pubads.g.doubleclick.net/gampad/jump?co=1&iu=/6978/reg_software/applications&sz=300x50%7C300x100%7C300x250%7C300x251%7C300x252%7C300x600%7C300x601&tile=3&c=33aV2UCyxKUgfwiUgmI0xEbgAAAlI&t=ct%3Dns%26unitnum%3D3%26raptor%3Deagle%26pos%3Dmid%26test%3D0
[5] https://x.com/brave/status/1935716280121610485
[6] https://x.com/brave/status/1984338120297562336
[7] https://community.brave.app/t/release-channel-1-85-118/647176
[8] https://community.brave.app/t/release-channel-1-79-118/621692
[9] https://pubads.g.doubleclick.net/gampad/jump?co=1&iu=/6978/reg_software/applications&sz=300x50%7C300x100%7C300x250%7C300x251%7C300x252%7C300x600%7C300x601&tile=4&c=44aV2UCyxKUgfwiUgmI0xEbgAAAlI&t=ct%3Dns%26unitnum%3D4%26raptor%3Dfalcon%26pos%3Dmid%26test%3D0
[10] https://pubads.g.doubleclick.net/gampad/jump?co=1&iu=/6978/reg_software/applications&sz=300x50%7C300x100%7C300x250%7C300x251%7C300x252%7C300x600%7C300x601&tile=3&c=33aV2UCyxKUgfwiUgmI0xEbgAAAlI&t=ct%3Dns%26unitnum%3D3%26raptor%3Deagle%26pos%3Dmid%26test%3D0
[11] https://crates.io/crates/flatbuffers
[12] https://www.theregister.com/2026/01/05/aws_price_increase/
[13] https://www.theregister.com/2026/01/06/ai_data_pollution_defense/
[14] https://www.theregister.com/2026/01/05/claude_devs_usage_limits/
[15] https://www.theregister.com/2026/01/05/chatgpt_playing_doctor_openai/
[16] https://users.rust-lang.org/t/rust-1-51-const-generics-examples/57426
[17] https://github.com/brave/adblock-rust/pull/517
[18] https://brave.com/blog/accurately-predicting-ad-blocker-savings/
[19] https://brave.com/blog/brave-one-dot-zero-performance-methodology-and-results/
[20] https://brave.com/blog/brave-android-one-eight-zero-plus-performance/
[21] https://brave.com/blog/improved-ad-blocker-performance/
[22] https://github.com/brave/blade?tab=readme-ov-file#blog-posts
[23] https://4e6.github.io/firefox-lang-stats/
[24] https://security.googleblog.com/2023/01/supporting-use-of-rust-in-chromium.html
[25] https://www.theregister.com/2025/12/24/microsoft_rust_codebase_migration/
[26] https://github.com/brave/brave-core/pull/31677
[27] https://x.com/BrendanEich/status/1948500509570023575
[28] https://x.com/BrendanEich/status/2006412918783619455?s=20
[29] https://whitepapers.theregister.com/
I support Brave
Pascal Monett
And I tell everyone about it for their smartphones. Brave has saved me an untold quantity of data bandwidth by cutting out what I don't need and leaving me with what I actually want to see on that damn handheld screen (that I hate - mostly because my customers have my number and some of them have no notion of what time is too late to phone someone).
I have installed Brave on all my computers and laptops as well, and I have made it the default for my wife's laptop, my daughter's laptop, and I am endlessly advocating it to anyone who will listen if the conversation crops up.
Fuck ads. Long live Brave (and Firefox with NoScript and uBlock Unity).
Firefox again feels like being stuck in a toxic relationship
The Mozilla Foundation is utterly dysfunctional, gave up on reducing memory consumption, and seemingly only remains active to frustrate and disappoint its users.
And yet I won't switch. Hard pass on any browser which isn't open source, which integrates/allows advertising, or which is built on Chromium.
Can some tech philanthropist just freaking fork Firefox and Thunderbird to a new, functional organization?