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

Determine a wee faster whether json_name matches the default #105

Conversation

rdesgroppes
Copy link

@rdesgroppes rdesgroppes commented Jul 13, 2023

Following #103, this is to determine a wee faster whether a json_name matches the default generated one (returning a boolean as soon as possible, without a need to grow a StringBuilder).

Following commit d809f18, this is to
determine a wee faster whether a `json_name` matches the default
generated one (returning a boolean as soon as possible, without a need
to grow a `StringBuilder`).
@rdesgroppes rdesgroppes mentioned this pull request Jul 13, 2023
@jhaber
Copy link
Member

jhaber commented Jul 13, 2023

I'm a bit weary of changing this function, I think it will be easier to maintain if it's just a direct copy. Also, we cache the result of this computation, so it should only get called once

@rdesgroppes
Copy link
Author

Fair enough. Closing the PR, then.

@rdesgroppes rdesgroppes deleted the regis/avoid-growing-a-string-builder branch July 13, 2023 19:31
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.

2 participants