Skip to content

Commit

Permalink
Merge pull request #868 from pulldown-cmark/cargo_perf_opt
Browse files Browse the repository at this point in the history
perf: cargo-wizard default recommendations for runtime perf
  • Loading branch information
Martin1887 committed Apr 2, 2024
2 parents d4b1f29 + 2f94b34 commit cc18f0e
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
5 changes: 5 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
[workspace]
members = ["pulldown-cmark", "pulldown-cmark-escape"]
resolver = "2"

[profile.release]
lto = true
codegen-units = 1
panic = "abort"
16 changes: 15 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -176,9 +176,23 @@ Or add the feature to your project's `Cargo.toml`:
pulldown-cmark = { version = "0.9.2", default-features = false, features = ["simd"] }
```

For a higher release performance you may want this configuration in your profile release:

```
lto = true
codegen-units = 1
panic = "abort"
```

## Authors

The main author is Raph Levien. The implementation of the new design (v0.3+) was completed by Marcus Klaas de Vries.
The main author is Raph Levien. The implementation of the new design (v0.3+) was
completed by Marcus Klaas de Vries. Since 2023, the development has been driven
by Martín Pozo, Michael Howell, Roope Salmi and Martin Geisler.

## License

This software is under the MIT license. See details in [license file](./LICENSE).

## Contributions

Expand Down

0 comments on commit cc18f0e

Please sign in to comment.