You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Reduce allocations in the ImageElementConverter and ImageIdConverter Read methods (#78881)
* Reduce allocations in the ImageElementConverter and ImageIdConverter Read methods
These methods show up in the typing scenario in the razor speedometer test as about 0.9% (63 MB) of allocations.
1) Changed ImageIdConverter to be more like ImageElementConverter and not create a JsonDocument object to query
2) Changed several Utf8JsonReader.GetText calls to instead use Utf8JsonReader.CopyString
3) Changed JsonElement.GetString and new Guid(...) to instead use Utf8JsonReader.GetGuid()
Note that if this PR is merged, I'll also try to make a change to vslanguageserverclient to also do the same as that code has the same issues.
0 commit comments