- 
                Notifications
    
You must be signed in to change notification settings  - Fork 10.6k
 
Sema: Collected expression checking performance test cases from GitHub issues #84450
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
d38b3ec    to
    f2c9c21      
    Compare
  
    | 
           @swift-ci Please test  | 
    
| func slow() { | ||
| let _ = | ||
| (0x0041...0x005A).stringValue + // 'A' to 'Z' | ||
| (0x0061...0x007A).stringValue + // 'a' to 'z' | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems like this might be a good candidate for a scale test as well?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perhaps, I thought it was interesting that it had two string literals in the middle too :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, we can keep that but do the loops in-between maybe?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is great, thank you!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it possible for one of these to regress and become 10x slower without reaching the scope limit or affecting scope increase linearity?
f2c9c21    to
    2b546be      
    Compare
  
    | 
           @swift-ci Please smoke test  | 
    
2b546be    to
    2b1e506      
    Compare
  
    | 
           @swift-ci Please test  | 
    
| 
           @swift-ci Please smoke test macOS  | 
    
I went through the backlog of type checker performance bugs and reduced some test cases. Some are still slow, others were fixed a while ago, and a few were fixed in 6.2 or main.
Now fast:
Still slow: