so we don't need to allocate a temporary string for looking up OI or SS
attribute
Signed-off-by: Kefu Chai <kchai@redhat.com>
using bufferlist = ceph::bufferlist;
bufferlist data;
- std::map<std::string,bufferptr> xattr;
+ // use transparent comparator for better performance, see
+ // https://en.cppreference.com/w/cpp/utility/functional/less_void
+ std::map<std::string,bufferptr,std::less<>> xattr;
bufferlist omap_header;
std::map<std::string,bufferlist> omap;