Skip to content

perf: cranelift-codegen-meta: reduce llvm-lines in calls to Path::join - #14093

Closed
dishmaker wants to merge 1 commit into
bytecodealliance:mainfrom
dishmaker:dishmaker/perf_isle_paths
Closed

perf: cranelift-codegen-meta: reduce llvm-lines in calls to Path::join#14093
dishmaker wants to merge 1 commit into
bytecodealliance:mainfrom
dishmaker:dishmaker/perf_isle_paths

Conversation

@dishmaker

Copy link
Copy Markdown
Contributor

-0.1% less llvm lines

You can just close this PR if it's wasting your time 😄

@dishmaker
dishmaker requested a review from a team as a code owner August 8, 2026 15:33
@dishmaker
dishmaker requested review from alexcrichton and removed request for a team August 8, 2026 15:33
@cfallin

cfallin commented Aug 8, 2026

Copy link
Copy Markdown
Member

@dishmaker can I ask what the overall goal with these PRs is? You're optimizing the size of build-time meta-code, and in tiny (trivial 0.1% shifts) ways and in some places in ways that makes the code less idiomatic or harder to trace through (e.g. prior vec-push vs. array-literal PR), which doesn't really affect Cranelift's critical path in any real way as far as I'm aware. Is there a broader goal of making binaries smaller or somesuch?

@dishmaker

Copy link
Copy Markdown
Contributor Author

I'm trying to reduce compile times in debug and binary size in release.

cranelift-codegen depends on:

  • cranelift-codegen (build-script), which depends on:
    • cranelift-codegen-meta
image

@dishmaker dishmaker closed this Aug 8, 2026
@cfallin

cfallin commented Aug 8, 2026

Copy link
Copy Markdown
Member

Sure, faster builds of the build script itself are a priority; we've indeed been careful to keep deps minimal there.

That said I'm not sure "0.1% fewer LLVM IR lines" justifies a lot of PRs, review traffic, and sometimes nontrivial changes to control flow if the build-time effect is also in that neighborhood (and it could be less if trivial differences are optimized away early in the LLVM pipeline). Have you measured a speedup in build time? I'm happy to see these through if you've got that data. Thanks!

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.

2 participants