Repository navigation
Remove string allocations - #9718
Conversation
TIHan
left a comment
There was a problem hiding this comment.
The changes look good, but I would like to see more information regarding these changes.
Do the changes actually give a measurable performance improvement in the overall tooling? Can you provide evidence?
Also, more description of the PR would be helpful too instead of it being empty.
Normally I would 'request changes', but since this isn't touching the internals of the compiler - I can be a bit more relaxed.
|
To note: The only reason why I made the comment that I did was because we have to use |
|
I was just browsing the repo and noticed these things could be improved, so that's what I did thinking any performance uplift (and I'm pretty sure this change will have a completely negligible impact on its own) is better than nothing, admittedly with no regard to readability. That's all there is to say, really ;) |
KevinRansom
left a comment
There was a problem hiding this comment.
These are good changes. I agree the perf improvements will be minuscule, we normally try to avoid drive-by churn because of unintended consequences, however, these look focused enough that the risk is pretty low.
Thank you for taking care of this
Kevin
|
These changes may not actually be miniscule - one of these cases removes a new string allocation for every single span of text we classify in a document. For large documents that could be meaningful. |
|
@cartermp, how would one go about measuring the difference on a sizeable file/codebase? |

No description provided.