Live data from Hacker News

Brave overhauled its Rust adblock engine with FlatBuffers, cutting memory 75%

brave.com

11–20 of 289 posts

Re: Brave overhauled its Rust adblock engine with FlatBuffers, cutting memory 75%

#12
post #6
post #4

Earlier quoted context omitted.

> these days Are you referring to current RAM prices or bloat of numerous Electron apps?

A $130 Motorola smartphone has 8GB of RAM. This will save 0.5% RAM. It's fairly negligible on modern systems.

Now multiply that across all apps/services/extensions/profiles and it adds up.

This kind of lazy thinking is why today’s software is so bloated and slow.

Re: Brave overhauled its Rust adblock engine with FlatBuffers, cutting memory 75%

#13
post #3

I'm not sure how impressed I should feel about saving 45 MiB these days.

45MiB is for the default adblock setup, and it scales with the more block lists you have enabled. I'll happily take performance improvements cause most products lack any efficiency care nowadays.

[flagged]

Re: Brave overhauled its Rust adblock engine with FlatBuffers, cutting memory 75%

#14
Brave's adblocking engine is a neat example of open source and the ease of sharing lbraries in Rust. It uses Servo crates (also used by Firefox) to parse CSS and evaluate selectors, and is then itself published as a crate on crates.io where it can be pulled in by others who may want to use it.

Re: Brave overhauled its Rust adblock engine with FlatBuffers, cutting memory 75%

#18
post #16

I hope that this is the start of developers being conscious of using resources efficiently again, especially in the browser. The more rust gets written, the better AI will be able to write it for people... I like to be optimistic.

The adblocker was already written in Rust.

Re: Brave overhauled its Rust adblock engine with FlatBuffers, cutting memory 75%

#19
post #17

I just found out Brave supports Vertical tabs, https://brave.com/blog/vertical-tabs/ I might have to try switching from FF...

Do they support nested tabs? Makes visually navigating many tabs so much easier that way.
Post reply on HN