Template EliasFanoReader on size type
authorGiuseppe Ottaviano <ott@fb.com>
Wed, 3 May 2017 21:58:42 +0000 (14:58 -0700)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Wed, 3 May 2017 22:13:37 +0000 (15:13 -0700)
commit121ecb47e326245d256a2a4ac32e4670429d34ba
tree8b1e368ab2e93eee9433db04b03b7004250abe5e
parent71ca4d5eab4bfb45649e6338b6ff20c081ccc9f0
Template EliasFanoReader on size type

Summary: Shrink the reader type if less than 64 bits are sufficient for sizes. Do the same for `BitVectorCoding`, where we don't need an extra template parameter because the size is limited by the value domain.

Reviewed By: philippv, luciang

Differential Revision: D4976756

fbshipit-source-id: 685047da81a556d049fb924c612f99cea3056a82
folly/experimental/BitVectorCoding.h
folly/experimental/EliasFanoCoding.h
folly/experimental/test/EliasFanoCodingTest.cpp