lemire / FastPFor

The FastPFOR C++ library: Fast integer compression
Apache License 2.0
849 stars 124 forks source link

Question on compressor of uint16_t #114

Open yingfeng opened 3 months ago

yingfeng commented 3 months ago

Hi, FastPFor is a wonderful project and has already been added to our database infinity as the posting list codec for the builtin full text search engine. However, currently we've not enabled it right now because we require the codec to be a template based one such that both uint32_t and uint16_t could be compressed and decompressed correctly. Current FastPFor provides interfaces for uint32_t, a naive solution is to cast between uint16_t and uint32_t one by one but it is not efficient, as a result, how to provide builtin codec for uint16_t ? Thank you ~

lemire commented 3 months ago

We do not currently suppose uint16_t as you may have realized. Pull request invited.