-
-
Notifications
You must be signed in to change notification settings - Fork 7k
Change double quotes to single quotes #5815
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
Conversation
- "." is a string literal, and so is treated as the char '.' plus the null char '\0'. - Single quotes reduces the necessary memory for this literal to only one char instead. A string literal as the one actually present may require the use of the method "write(const char *str)", so there could be also a performance overhead. - Another reason to change quotes style is for consistency with line 235. Signed-off-by: Patrick Roncagliolo <[email protected]>
Signed-off-by: Patrick Roncagliolo <[email protected]>
My commits now appear after @matthijskooijman's and @NicoHood's approvals because I signed-off them only this evening, and so the original hashes have changed. Sorry for the inconvenient. Feel free to double-check content, no variations were made from original commits. |
@roncapat What do you mean by signed off? They are not GPG signed or at least if they are you miss-configured github. |
First two patches looks really good, while I'd avoid merging the GSM related patch (maybe opening another PR on https://github.com/arduino-libraries/GSM is more appropriate) |
Let me know if I have to squash the first two commits and pop-out the last
one in order to have only the patch(es) you indicated, or something else.
In the next hours I'll then submit the last patch to GSM library repo.
|
Simply force pushing on the same branch after removing the GSM related patch is ok IMO |
Done. Here are only the patches for core library. |
Merged, thanks! |
Change double quotes to single quotes
Observe that "." is a string literal, and so is treated as the char '.' plus the null char '\0'. Single quotes reduces the necessary memory for this literal to only one char instead.
A string literal as the one actually present may require the use of the method "write(const char *str)", so there could be also a performance overhead.
Another reason to change quotes style is for consistency with line 235.
Signed-off-by: Patrick Roncagliolo [email protected]