On the topic of compile time speedups, a long time ago we got a nice boost
in 1443252 [0] by marking some central classes `final`. (Meta is 1332680
[1])

gcc supports the -Wsuggest-final-types but I don't think LLVM does - so if
anyone happens to have a kind-of-working gcc build of Firefox, you could
try this warning and see what it spits out today.

[0] https://bugzilla.mozilla.org/show_bug.cgi?id=1443252
[1] https://bugzilla.mozilla.org/show_bug.cgi?id=1332680

On Fri, Aug 1, 2025 at 8:44 AM 'Gabriele Svelto' via
dev-platform@mozilla.org <dev-platform@mozilla.org> wrote:

> On 31/07/2025 19:06, 'Kagami Rosylight' via dev-platform@mozilla.org
> wrote:
> > As of bug 1957934 <https://bugzilla.mozilla.org/show_bug.cgi?
> > id=1957934> (30 April 2025, yes it's late...) we got new autogenerated
> > forward declarations headers. From now on if you have an interface or
> > dictionary like:
> >
> > // foo.webidl
> > interface Foo {};
> > dictionary FooDict {};
> >
> > Then you get forward declaration for Foo and FooDict in mozilla/dom/
> > FooFwd.h.
>
> this is great! I take this opportunity to remind everybody that we have
> an `includehell` [1] bug where we gather all bugs about minimizing
> unnecessary header inclusions. If you're touching code pulling in lots
> of headers consider checking if you can prune some stuff or replace them
> with forward declarations, the compilation time benefits are worth it.
>
>   Gabriele
>
> [1] [Meta] Fix Gecko's #include dependencies
>      https://bugzilla.mozilla.org/show_bug.cgi?id=includehell
>
> --
> You received this message because you are subscribed to the Google Groups "
> dev-platform@mozilla.org" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to dev-platform+unsubscr...@mozilla.org.
> To view this discussion visit
> https://groups.google.com/a/mozilla.org/d/msgid/dev-platform/60849b36-f873-4581-ad8e-5744b234682d%40mozilla.com
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"dev-platform@mozilla.org" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to dev-platform+unsubscr...@mozilla.org.
To view this discussion visit 
https://groups.google.com/a/mozilla.org/d/msgid/dev-platform/CADua4_sATbN7chbhcBY-etk9VYsMZyZqY7qmB1eoEXXhpuV6Zw%40mail.gmail.com.

Reply via email to