-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Rust: restrict canonical path calculations #18165
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
Conversation
import codeql.rust.elements.ParenType | ||
import codeql.rust.elements.Pat | ||
import codeql.rust.elements.Path | ||
import codeql.rust.elements.PathAstNode |
Check warning
Code scanning / CodeQL
Redundant import Warning
codeql.rust.elements.PathExpr
Redundant import, the module is already imported inside
codeql.rust.elements.PathPat
Redundant import, the module is already imported inside
codeql.rust.elements.StructExpr
Redundant import, the module is already imported inside
codeql.rust.elements.StructPat
Redundant import, the module is already imported inside
codeql.rust.elements.TupleStructPat
@hvitved could you lend me a hand here with the dataflow changes? I tried to preserve the implementation while shifting around the path resolution from |
Seems like this is helping performance, although not by a great deal: end2end time went down with a median of around -4%, with some faster outliers: |
Aren't the |
I must say the thought crossed my mind, but then I thought that replacing a unique string representation with another should not multiply results, unless there's a |
Where do you see result multiplication? |
😮 I hadn't noticed they went away after the previous merge from main including some of your new changes 🎉. I was referring to diffs such as this one for a previous version of this PR, but now it seems it's all good! I'll still split out the |
No description provided.