Skip to content

Update some text about borrow checking for accuracy #76

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

Merged
merged 1 commit into from
Jul 14, 2025

Conversation

joshtriplett
Copy link
Contributor

There's a common misconception that the borrow checker contributes
substantially to Rust compilation time. However, this isn't the case;
borrow checking is not a substantial part of compilation time.

(For reference, some of the larger contributors to Rust compilation time
include Rust relying too much on LLVM to clean up and optimize things rather
than sending less LLVM IR to LLVM in the first place. Monomorphization can also
contribute to this problem.)

There's a common misconception that the borrow checker contributes
substantially to Rust compilation time. However, this isn't the case;
borrow checking is not a substantial part of compilation time.
@devnoname120
Copy link
Contributor

devnoname120 commented Jul 13, 2025

For attribution, this PR description is a paraphrase of this comment: https://news.ycombinator.com/item?id=44550945

@dumindu dumindu merged commit 599ec81 into learning-rust:main Jul 14, 2025
@joshtriplett joshtriplett deleted the borrow-checker-non-cost branch July 15, 2025 17:13
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