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

Use empty() instead of comparing against new string. #58

Merged
merged 1 commit into from Jul 13, 2018

Conversation

zmoratto
Copy link
Member

It is much faster to call empty() than it is to construct another empty string and compare against.

@oleg-alexandrov oleg-alexandrov merged commit d71aff5 into visionworkbench:master Jul 13, 2018
@oleg-alexandrov
Copy link
Contributor

I carefully verified that there is no mix-up anywhere (eg, !="" replaced with empty() rather than !empty.()).

@oleg-alexandrov
Copy link
Contributor

And the unit tests pass. (Which isn't saying much, since some of that code is not actively tested.)

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.

None yet

2 participants