Skip to content

Conversation

nyannyacha
Copy link
Contributor

What kind of change does this PR introduce?

Chore

Description

This PR adjusts the release profile.

  • For lto, I've changed from fat to thin.
    • The main reason for changing this is that FullLTO (Traditional LTO) only works on a single thread and consumes a very large amount of memory. Previously we were seeing a moderate impact on build times with this option enabled because we didn't enable debug symbols in our release profile, but now I am seeing unacceptable build times and memory consumption.
    • No performance change was detected on the local machine due to this change.
  • Increase the debug symbol level to maximum.
    • In Dockerfile, the debug symbol is separated into a file by the objcopy, so no significant size increase was found for the edge runtime binary itself.
    • The size of the debug symbol is almost 2x(63M -> 114M) and the size of edge runtime on thinLTO has increased by about 2M (111M -> 114M).

@nyannyacha nyannyacha merged commit 0ea6c60 into supabase:main Sep 30, 2024
3 checks passed
@nyannyacha nyannyacha deleted the chore-adjust-release-profile branch September 30, 2024 01:54
Copy link

🎉 This PR is included in version 1.58.8 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants