Live data from Hacker News

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

brave.com

31–40 of 289 posts

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

#31
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.

It's more than that, because generally performance is also much worse if you're using a shit ton of memory. That's because CPUs are bottlenecked by cache. So more memory means cache has to be flushed more often, and there will be more misses, which can greatly impact performance.

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

#32
post #24

I am surprised there does not exist a community fork of Brave yet that strips out all of the commercial stuff (rewards, AI, own updates), making it suitable for inclusion in the repos of mainstream free/libre Linux distros.

It's annoying, but Brave makes it pretty easy to remove, so you only have to do it once per installation.

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

#33
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.

>I hope that this is the start of developers being conscious of using resources efficiently again, especially in the browser.

AI may have forced the hand on this. Users will no longer be able to subsidize software performance with hardware upgrades due to the great DRAM debacle of 2026..

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

#34

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.

At risk like node/npm with all the supply-chain attacks then?

Or is there something that cargo does to manage it differently (due diligence?).

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

#35
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.

Unfortunately not, but it does support tab grouping which I use for basically this reason.Althought you can't do a group within a group.

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

#37
post #30
post #21

Does Brave actually block ads now? Or does it still replace them with ads for scanmy cryptocurrency?

> Or does it still replace them with ads for scanmy cryptocurrency? Brave never did that. Brave blocks third-party ads & trackers by default. (disclaimer: I lead privacy and adblocking at Brave)

lead what? https://archive.is/W0k4j

(disclaimer: people remember how sketchy Brave is)

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

#38

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.

At risk like node/npm with all the supply-chain attacks then? Or is there something that cargo does to manage it differently (due diligence?).

Supply-chain attacks aren't really a property of the dependency management system

Not having a dependency management system isn't a solution to supply chain attacks, auditing your dependencies is

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

#39
post #17

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

A great power of Firefox are its add-ons, aren't they? Sidebery [1] has been a solid implementation of vertical tabs since a long time ago. Begore that got popular, Tree Style Tabs [2] was also a very comprehensive solution.

But nowadays, vertical tabs are native since Firefox v136 [3][4], so at least for the basics you won't need an add-on.

[1]: https://addons.mozilla.org/firefox/addon/sidebery/

[2]: https://addons.mozilla.org/firefox/addon/tree-style-tab/

[3]: https://news.ycombinator.com/item?id=41192118

[4]: https://news.ycombinator.com/item?id=43254871

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

#40
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.

> I hope that this is the start of developers being conscious of using resources efficiently again, especially in the browser.

Me too.

> The more rust gets written,

Rust seems neither necessary nor sufficient for getting developers to care about memory efficiency again though.

Post reply on HN