<commit_before># densityxx
c++ version of density

density is a superfast compression library composed by Centaurean.

This is a C++ version of density, spookyhash. The original code is migrate from:
   https://github.com/centaurean/density
   https://github.com/centaurean/spookyhash
   https://github.com/centaurean/sharc

densityxx use the same LICENSE with the original density.

I shall implement some more features after the migration.<commit_msg>* update README.md.<commit_after>densityxx
=========
densityxx is the c++ version of density, which is a super fast compress library.

It is BSD licensed open-source, just like density.

Where it come from?
-------------------

density is a superfast compression library composed by Centaurean.

This is a C++ version of density, spookyhash. The original code is migrate from:
* https://github.com/centaurean/density
* https://github.com/centaurean/spookyhash
* https://github.com/centaurean/sharc

Changes
-------

To use C++ features to simplify the code, the following changes are applied:
* All enum, function, struct, class, variables are put into namespace "density". For these names:
   * Remove the prefix "density_".
   * Use xxx_xxx name scheme.
   * Use suffix "_t" for name of types.
   * Always use lowercase letters.
* The name of all macros are not changed because they are not support namespace.
* For the name that put into e name of enum, function, struct, class, varables 
* All compress algorithmes are implemented in subclass of kernel_encode_t & kernel_decode_t. No more function pointer are required.
* Each member functions in spookyhash.hpp, memory.hpp, format.hpp, kernel.hpp, block.hpp are inlined.
* The size of generated binary decreased greatly.
* Combine the three packages, spookyhash, density, sharc into one package.
{'fraction_non_alphanumeric': 0.08985024958402663, 'fraction_numerical': 0.0, 'mean_word_length': 4.067415730337078, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 6, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1806589', 'n_tokens_mistral': 500, 'n_tokens_neox': 489, 'n_words': 223}