Live data from Hacker News

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

brave.com

21–30 of 289 posts

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

#22

Funny that the iOS update notes don't mention this at all: > in this release: > Other enhancements, stability improvements, and security updates No mention of efficiency, or adblocking whatsoever!

Is the iOS version of Brave actually the same codebase? My understanding is that all browsers on iOS have to wrap Safari, which would explain the release notes. But I could be wrong here, as I don't develop for iOS.

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

#23
post #6

Earlier quoted context omitted.

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

130USD for 8GB RAM will be a good price for a bare DIMM in two weeks.

I can sell you 16 GB DIMMs today for less than 2x that so that you can profit.

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

#25

Funny that the iOS update notes don't mention this at all: > in this release: > Other enhancements, stability improvements, and security updates No mention of efficiency, or adblocking whatsoever!

Is the iOS version of Brave actually the same codebase? My understanding is that all browsers on iOS have to wrap Safari, which would explain the release notes. But I could be wrong here, as I don't develop for iOS.

The article says:

> The upgrade represents roughly 45 MB of memory savings for the Brave browser on every platform (Android, iOS and desktop) by default

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

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

There is quite a lot of costs associated with running a browser (at scale). Brave is looking to offer something that does what you mention called Brave-origin.

Brendan talks about this a bit more here: https://x.com/BrendanEich/status/2006412918783619455

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

#28

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

Adblock data is accessed on every request; so this is 45 MiB of cpu cache .

I mean unless it's a linear search through the whole list, I doubt you save that much cache.

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

#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)

Post reply on HN