eBay / akutan

A distributed knowledge graph store
Apache License 2.0
1.65k stars 107 forks source link

Better encoding for KGObject / Fact. Fixes #7 #24

Closed superfell closed 5 years ago

superfell commented 5 years ago

This ditches the 19 char ascii encoding used in KGObject & Keys for uint64s, and switches to a 8 byte bigendian encoding instead. For the SPO/POS keys, unneeded separated are removed, and the type prefix shortened. This cuts the size of a Fact with a KGObject of type Int from 114 bytes to 49 bytes.