Skip to content

Range.mkRange is allocating large amount of data normalizing strings #5932

@davkean

Description

@davkean

Trace: https://developercommunity.visualstudio.com/content/problem/379653/vs-slow-typing-and-hang-1.html.

It looks like Range.mkRange is allocating 16 MB of data just normalizing a path via Path.GetFullPath. I have no idea what this code does, or under what circumstances this is hit - but we should try avoid normalizing files over and over again.

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions