Skip to content
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

[Cohost] Improve OOP serialization of Html documents #10185

Open
davidwengier opened this issue Mar 29, 2024 · 0 comments
Open

[Cohost] Improve OOP serialization of Html documents #10185

davidwengier opened this issue Mar 29, 2024 · 0 comments
Milestone

Comments

@davidwengier
Copy link
Contributor

Right now we transfer the contents of Html virtual documents from OOP, where they are computed, and send them back to the IDE as a string so we can make an LSP call. We should see if we can expose something like Roslyn's SerializableSourceText to make this more efficient, and avoid LOH allocations.

The other option is to not go to OOP for the Html document, but rather see if it's possible to create a non-allocating fast parser in the IDE that can produce it. Since it doesn't require semantics, it can probably be done direct from the Razor source which is already in the IDE at the point of the OOP call.

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

No branches or pull requests

2 participants