Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

syntax: Improving the Hir::drop() implementation. #1331

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

Open
10-hard-problems wants to merge 8 commits into rust-lang:master
base: master
Choose a base branch
Loading
from 10-hard-problems:malloc_free_hir_drop

Conversation

@10-hard-problems
Copy link

@10-hard-problems 10-hard-problems commented Feb 2, 2026

Currently, the drop implementation for Hir instances allocates heap memory to use as impromptu stack while it walks the Hir tree. With some cleverness, we can reuse the existing allocations for Concat and Alternation, instead.

Copy link
Author

Can someone help me fix the msrv failure? The errors says that local_key_cell_methods isn't available on stable yet, but the linked issue says it was stablised in 2023.

Copy link
Member

Copy link
Member

Can you say what motivated this? Is there a real world (albeit perhaps minimized) benchmark where this leads to an improvement?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /