Skip to content

Send over the new sourcetext's content checksum when sending notification of textchanges#75928

Merged
ToddGrun merged 3 commits intodotnet:mainfrom
ToddGrun:dev/toddgrun/SendOverSourceTextTextChecksumInSynchronizationNotification
Nov 16, 2024
Merged

Send over the new sourcetext's content checksum when sending notification of textchanges#75928
ToddGrun merged 3 commits intodotnet:mainfrom
ToddGrun:dev/toddgrun/SendOverSourceTextTextChecksumInSynchronizationNotification

Conversation

@ToddGrun
Copy link
Contributor

Calculation of this on the server was taking quite a bit of CPU (about 11.6% in the scrolling speedometer during the typing scenario). Instead, pass this data over as part of the text change notification, similar to what SerializableSourceText's serialization code does.

image

…tion of textchanges

Calculation of this on the server was taking quite a bit of CPU (about 11.6% in the scrolling speedometer during the typing scenario). Instead, pass this data over as part of the text change notification, similar to what SerializableSourceText's serialization does.
@ToddGrun ToddGrun requested a review from a team as a code owner November 15, 2024 00:54
@ghost ghost added Area-IDE untriaged Issues and PRs which have not yet been triaged by a lead labels Nov 15, 2024
@ToddGrun
Copy link
Contributor Author

ToddGrun commented Nov 15, 2024

Test insertion build: https://devdiv.visualstudio.com/DevDiv/_build/results?buildId=10562135

Results didn't show any samples in GetContentHash OOP (and it doesn't appear to have increased time spent in that method in VS either)

baseline:
image

target:
image

@ToddGrun
Copy link
Contributor Author

ToddGrun commented Nov 15, 2024

New test insertion PR after commit 3:

https://devdiv.visualstudio.com/DevDiv/_build/results?buildId=10568078&view=results

New numbers still look good, roughly same amount of work done in VS and no work done OOP

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants