-
Notifications
You must be signed in to change notification settings - Fork 1
Digram Serialization
F. Conrads edited this page Sep 10, 2019
·
27 revisions
To serialize several Digrams we simply add the serialized Digrams to each other, due to the fact that we know the size of the internal data of each digram, hence er know when one Digram ends and when one begins.
Improvment:
Use the fact that positive Integers start with a 0 bit. We could simply set the first bit of external Index1 to 1 as we only need two bits per external Index. Thus using a xor we can check if we got another int or the external indexes.
This would save 4 bytes * |Digrams|