Skip to content

For IsAtDotDotToken, ensure the current token is a DotToken before parsing the next token to see if it's also a DotToken.#78338

Merged
ToddGrun merged 1 commit intodotnet:mainfrom
ToddGrun:dev/toddgrun/DotDotParsePerf
Apr 28, 2025
Merged

For IsAtDotDotToken, ensure the current token is a DotToken before parsing the next token to see if it's also a DotToken.#78338
ToddGrun merged 1 commit intodotnet:mainfrom
ToddGrun:dev/toddgrun/DotDotParsePerf

Conversation

@ToddGrun
Copy link
Contributor

@ToddGrun ToddGrun commented Apr 27, 2025

I see LanguageParser.IsAtDotToken accounting for about 1 second of CPU time (0.5%) in the C# editing speedometer test. Local testing indicates about 85% of calls into this method will be filtered by this check.

Test insertion: https://dev.azure.com/devdiv/DevDiv/_git/VS/pullrequest/631973

Speedometer results look good:

*** Old allocations under IsAtDotDotToken ***
image

*** Old CPU under IsAtDotDotToken ***
image

*** New allocations under IsAtDotDotToken ***
image

*** New CPU under IsAtDotDotToken ***
image

…rsing the next token to see if it's also a DotToken.

I see LanguageParser.IsAtDotToken accounting for about 1 second of CPU time (0.5%) in the C# editing speedometer test. Local testing indicates about 85% of calls into this method will be filtered by this check.

Going to initiate a speedometer run via a tes insertion and will update with the results when available.
@ToddGrun ToddGrun requested a review from a team as a code owner April 27, 2025 17:21
@ghost ghost added Area-Compilers untriaged Issues and PRs which have not yet been triaged by a lead labels Apr 27, 2025
Copy link
Contributor

@AlekseyTs AlekseyTs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM (commit 1)

@ToddGrun ToddGrun merged commit c195a1f into dotnet:main Apr 28, 2025
24 checks passed
@dotnet-policy-service dotnet-policy-service bot added this to the Next milestone Apr 28, 2025
@RikkiGibson RikkiGibson modified the milestones: Next, 18.0 P1 Aug 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area-Compilers untriaged Issues and PRs which have not yet been triaged by a lead

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants