Use more efficient emptiness check #48

Closed
wants to merge 1 commit into
from

Projects

None yet

2 participants

@mscdex

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.

@mscdex mscdex Use more efficient emptiness check
Using empty() instead of size() can be faster. size() can take linear time but empty() is guaranteed to take constant time.
b0e5abc
@godsflaw
Collaborator

merged in from msgpack/msgpack-node#7

@godsflaw godsflaw closed this Jul 28, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment