C Library for compressing sequential positive integers

前端 未结 6 1495
难免孤独
难免孤独 2021-02-05 19:39

I have the very common problem of creating an index for an in-disk array of strings. In short, I need to store the position of each string in the in-disk representation. For exa

6条回答
  •  伪装坚强ぢ
    2021-02-05 20:15

    You have two conflicting requirements:

    1. You want to compress very small items (8 bytes each).
    2. You need efficient random access for each item.

    The second requirement is very likely to impose a fixed length for each item.

提交回复
热议问题