Skip to content
This repository has been archived by the owner on Jul 14, 2021. It is now read-only.

Use more efficient emptiness check #48

Closed
wants to merge 1 commit into from
Closed

Use more efficient emptiness check #48

wants to merge 1 commit into from

Conversation

mscdex
Copy link
Contributor

@mscdex mscdex commented Jul 28, 2013

Using empty() instead of size() can be faster. size() can take linear time but empty() is guaranteed to take constant time.

Issue(s) found via cppcheck.

Using empty() instead of size() can be faster. size() can take linear time but empty() is guaranteed to take constant time.
@godsflaw
Copy link
Collaborator

merged in from msgpack/msgpack-node#7

@godsflaw godsflaw closed this Jul 28, 2013
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants