Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/building/optimized-build.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,11 @@ Enabling LTO on Linux has [produced] speed-ups by up to 10%.
## Memory allocator

Using a different memory allocator for `rustc` can provide significant performance benefits.
If you want to enable the `jemalloc` allocator, you can set the `rust.override-allocator` option to `jemalloc`
If you want to enable the `jemalloc` allocator, you can set the `build.allocator` option to `jemalloc`
in `bootstrap.toml`:

```toml
rust.override-allocator = "jemalloc"
build.allocator = "jemalloc"
```

> Note that this option is currently only supported for Linux and macOS targets.
Expand Down
2 changes: 1 addition & 1 deletion src/profiling/with-perf.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ This is a guide for how to profile rustc with [perf](https://perf.wiki.kernel.or
- Get a clean checkout of rust-lang/rust
- Set the following settings in your `bootstrap.toml`:
- `rust.debuginfo-level = 1` - enables line debuginfo
- leave `rust.override-allocator` unset - lets you do memory use profiling with valgrind
- leave `build.allocator` unset - lets you do memory use profiling with valgrind
- leave everything else the defaults
- Run `./x build` to get a full build
- Make a rustup toolchain pointing to that result
Expand Down
Loading