Skip to content

Conversation

@10-hard-problems
Copy link

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.

@10-hard-problems
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.

@BurntSushi
Copy link
Member

They were stabilized in Rust 1.73: https://doc.rust-lang.org/std/thread/struct.LocalKey.html#method.set

@BurntSushi
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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants