Elektrine lite

← Feed

@WhyJiffie@sh.itjust.works

2026-04-24 15:34 UTC

> Rust is faster than JavaScript isn't ublock's filtering compiled to webassembly? > Actual ad blocking is something Firefox users have been begging Mozilla to do seems a bit dangerous though to risk for a browser with so small market share

Replies (4)

  • @XLE@piefed.social 2026-04-24 15:58

    > isn't ublock's filtering compiled to webassembly? From my unprofessional glance ar their repository, it uses a little, but not much. Take a look at [their code](https://github.com/gorhill/uBlock/tree/master/src/js); all or most of the filtering is done in JavaScript, the webassembly appears to be just ~~one~~ two modules. (It's in the "wasm" folder near the top of the list). _(Edit: I was looking at outdated code; the newer version uses more, but IMO pales in comparison to the [JavaScript filtering logic](https://github.com/gorhill/uBlock/blob/master/src/js/static-filtering-parser.js))_ > seems a bit dangerous though to risk for a browser with so small market share Waterfox has a much smaller market share and _much_ smaller budget, and was able to clear this with search partners just by promising not to block ads on them by default.

    Open ##1714504

  • @bjoern_tantau@swg-empire.de 2026-04-24 19:45

    > > Rust is faster than JavaScript > > isn't ublock's filtering compiled to webassembly? The slow thing usually is the DOM manipulation anyways.

    Open ##1714505

  • @Tollana1234567@lemmy.today 2026-04-25 04:55

    especially using a brave adblocker, which i noticed doesnt block most ads, and likely whitelists some of them.

    Open ##1714506

  • @Jason2357@lemmy.ca 2026-04-24 21:00

    > seems a bit dangerous though to risk for a browser with so small market share > They should have built it in years ago, but called it "web security filtering" or something and included only a basic security blocklist, but left it easy to add other lists.

    Open ##1714509