Skip to content
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

Add benchmark with many associated items #618

Closed

Conversation

ecstatic-morse
Copy link
Contributor

@ecstatic-morse ecstatic-morse commented Feb 19, 2020

rust-lang/rust#68957 demonstrated an increase in compile times that was quadratic in the number of associated items. rust-lang/rust#68837 sped these cases up a lot, and rust-lang/rust#69072 hopes to speed them up even more by making associated item name lookup O(log n).

This benchmark has been reduced in size from the original example to run in ~2 seconds locally. I was hoping to find a more real-world example that demonstrated the pathological behavior–embedded HAL crates were mentioned–but gave up.

@ecstatic-morse
Copy link
Contributor Author

cc @Mark-Simulacrum

@Mark-Simulacrum
Copy link
Member

r=me but looks like this needs a rebase, sorry for missing it initially

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