Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[nfc] 08/10/24 Build/Docs cleanup #2512

Merged
merged 1 commit into from
Aug 13, 2024
Merged

[nfc] 08/10/24 Build/Docs cleanup #2512

merged 1 commit into from
Aug 13, 2024

Conversation

fhanau
Copy link
Collaborator

@fhanau fhanau commented Aug 10, 2024

Cleaning out a number of smaller changes I had stashed for a while.

  • Emphasize that building on macOS requires Xcode.
  • Clean up Windows dependency script, the workaround is no longer needed.
  • Fix cargo-culted comment in encoding-test.js
  • Drop unused perfetto dependency for node target
  • Mark a few classes as final, expand anonymous namespace usage.

@fhanau fhanau requested review from a team as code owners August 10, 2024 17:02
@@ -56,6 +56,7 @@ namespace workerd::server {

using api::pyodide::PythonConfig;

namespace {
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Adding this closure is high-impact because JsgWorkerdIsolate instantiates the entire workerd JS API – on macOS compiling without optimization sees little impact to compile time or object code size (41.1MB => 40.6MB), but under -O3 there is a large impact on both (38.2s => 51.8s, 15.1MB => 10.3MB). Compiling workerd-api.c++ is a bottleneck for the build, but I think this is worth it since such tradeoffs are what we are looking for when optimization is enabled, we might also see faster LTO link times as there is less code to be optimized at that stage.

- Emphasize that building on macOS requires Xcode.
- Clean up Windows dependency script, the workaround is no longer needed.
- Fix cargo-culted comment in encoding-test.js
- Drop unused perfetto dependency for node target
- Mark a few classes as final, expand anonymous namespace usage.
@fhanau fhanau merged commit 57dd452 into main Aug 13, 2024
8 of 9 checks passed
@fhanau fhanau deleted the felix/081024-build-cleanup branch August 13, 2024 00:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants