bevy-website icon indicating copy to clipboard operation
bevy-website copied to clipboard

Investigate David Lattimore's compile speed tips

Open alice-i-cecile opened this issue 1 year ago • 2 comments

Article. Figure out which once work well, then update the advice to include them!

  • [x] Faster linker: already done
  • [ ] Don't link debug info
  • [ ] Build a non-relocatable executable

alice-i-cecile avatar Feb 18 '24 22:02 alice-i-cecile

I often do the strip = "debuginfo" thing unless actually debugging, if anything because it massively reduces artifact sizes, would advise. I'm going to try the non-PIC build, that should indeed be a huge boon. Another thing to consider is -Zbuild-std along with the panic handler changes mentioned.

AxiomaticSemantics avatar Feb 18 '24 22:02 AxiomaticSemantics

The static link to musl may help some users, but various packages break in my environment, bevy_audio will not build here, didn't try further. I'd advise against the latter or a big caveat with it.

AxiomaticSemantics avatar Feb 19 '24 00:02 AxiomaticSemantics