swift
8278c064 - Demangler: Reduce sizeof(Node) from 48 bytes to 24 bytes

Commit
6 years ago
Demangler: Reduce sizeof(Node) from 48 bytes to 24 bytes This is done by disallowing nodes with children to also have index or text payloads. In some cases those payloads were not needed anyway, because the information can be derived later. In other cases the fix was to insert an additional child node with the index/text payload. Also, implement single or double children as "inline" children, which avoids needing a separate node vector for children. All this reduces the needed size for node trees by over 2x.
Author
Committer
Parents
Loading