Skip to content

Avoid allocating in IsOperatorName#7061

Merged
TIHan merged 3 commits into
dotnet:masterfrom
forki:patch-46
Jun 27, 2019
Merged

Avoid allocating in IsOperatorName#7061
TIHan merged 3 commits into
dotnet:masterfrom
forki:patch-46

Conversation

@forki

@forki forki commented Jun 25, 2019

Copy link
Copy Markdown
Contributor

No description provided.

@cartermp cartermp left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Nice one, this is called when invoking completions so the extra string allocations probably do account for something here!

@forki

forki commented Jun 25, 2019

Copy link
Copy Markdown
Contributor Author

I don't think it's too much. It's only if the identifier has ( and ) around it

@TIHan TIHan merged commit 86f8b17 into dotnet:master Jun 27, 2019
@forki

forki commented Jun 27, 2019

Copy link
Copy Markdown
Contributor Author

Thanks for merging. Fun fact: in the maxbuffer PR I was able to get rid of it completely ;-)

@TIHan

TIHan commented Jun 27, 2019

Copy link
Copy Markdown
Contributor

Well, that's good. :) One step at a time.

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