Currently files just have "0" children, although an empty HashMap uses up 48 bytes of memory. If you wrap it inside Option<Box<_>> you might save up memory (reducing it down to 8 bytes if you replace empty HashMaps with None) but create an additional pointer that needs to be dereferenced.
Currently files just have "0" children, although an empty HashMap uses up 48 bytes of memory. If you wrap it inside
Option<Box<_>>you might save up memory (reducing it down to 8 bytes if you replace empty HashMaps with None) but create an additional pointer that needs to be dereferenced.