msgpack / msgpack-node

MessagePack implementation for Node.js
Other
311 stars 71 forks source link

Use more efficient emptiness check #7

Closed mscdex closed 11 years ago

mscdex commented 11 years ago

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.