Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
db/version_set.cc: use !empty() instead of 'size() > 0'
Use empty() since it should be prefered as it has, following the standard, a constant time complexity regardless of the containter type. The same is not guaranteed for size(). Fix for: [db/version_set.cc:2250]: (performance) Possible inefficient checking for 'column_families_not_found' emptiness. Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
- Loading branch information