]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
introduce compact_set and compact_map
authorYan, Zheng <zyan@redhat.com>
Fri, 6 Feb 2015 11:02:31 +0000 (19:02 +0800)
committerYan, Zheng <zyan@redhat.com>
Wed, 25 Feb 2015 12:12:13 +0000 (20:12 +0800)
commitc57df9c4e6f09c996fa0f54189501be085322b1b
tree9b50084c6305b4d783dc11159966df0785a47fc1
parent6d83bd09e99c5079d81ceb24c81eff8d3b2c4839
introduce compact_set and compact_map

They are wrapper classes of std::set and std::map, which only contain a
pointer to the actual std::set/std::map. They are aimed for replacing
std::set/std::map for class members which are rarely used and mostly
empty. Replacing each std::set/std::map can save 40 bytes for 64 bits
program.

Signed-off-by: Yan, Zheng <zyan@redhat.com>
src/include/Makefile.am
src/include/compact_map.h [new file with mode: 0644]
src/include/compact_set.h [new file with mode: 0644]
src/include/encoding.h