Skip to content

fix: use Release DCMAKE_BUILD_TYPE#36

Merged
marxin merged 1 commit intomasterfrom
use-Release-build-type
Jan 28, 2026
Merged

fix: use Release DCMAKE_BUILD_TYPE#36
marxin merged 1 commit intomasterfrom
use-Release-build-type

Conversation

@marxin
Copy link
Contributor

@marxin marxin commented Jan 28, 2026

So far, the LLVM was built as optimized for size what made the wasmer codegen much slower:

time target/release/wasmer run -l --disable-cache php/php-32 --compiler-threads=12 -- --version
real	0m33.667s
user	5m31.292s

After the change we get to the following numbers:

real	0m16.950s
user	3m16.750s

The binary size impact for wasmer CLI binary is about +20%.

So far, the LLVM was built as optimized for size what made the wasmer
codegen much slower:
```
time target/release/wasmer run -l --disable-cache php/php-32 --compiler-threads=12 -- --version
real	0m33.667s
user	5m31.292s
```

After the change we get to the following numbers:
```
real	0m16.950s
user	3m16.750s
```

The binary size impact for wasmer CLI binary is about +20%.
@Arshia001
Copy link
Member

I find +20% size for -50% compile time to be a good tradeoff.

@marxin marxin merged commit cf5fe68 into master Jan 28, 2026
7 checks passed
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