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

reuse JsonSerializer in the HTTP server #1073

Merged
merged 2 commits into from
Jan 8, 2018

Conversation

filipw
Copy link
Member

@filipw filipw commented Dec 22, 2017

JsonSerializers are relatively expensive to create, and are thread safe, so for the HTTP server we can just reuse the same instance.
Also updated a few places where extension methods were not invoked like extension methods.

Copy link

@rchande rchande left a comment

Choose a reason for hiding this comment

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

Nice!

@david-driscoll david-driscoll merged commit 108dd1a into OmniSharp:master Jan 8, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants