You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Was wondering if you have considered using the low bits on each child pointer to indicate the node type. Would remove the need for a 8 bit node type. There are only 4 node types I believe, and on 64 bit systems with 8 byte alignment you can use just the lower 2 bits.
Sorry not an issue really just a question :)
The text was updated successfully, but these errors were encountered:
#defineMAX_PREFIX_LEN 14
typedefstructartNode {
uint8_tpartialLen; /* length of 'partial' (could be 4 bits, but less efficient) */uint8_ttype : 2;
uint8_tchildrenCount : 6;
uint8_tpartial[MAX_PREFIX_LEN];
} artNode;
Seems 16 bytes is the smallest we can get for the common node metadata (having prefix len 14), so throwing two more bits away doesn't help us much right now.
nice code thanks for sharing!
Was wondering if you have considered using the low bits on each child pointer to indicate the node type. Would remove the need for a 8 bit node type. There are only 4 node types I believe, and on 64 bit systems with 8 byte alignment you can use just the lower 2 bits.
Sorry not an issue really just a question :)
The text was updated successfully, but these errors were encountered: