Polymorphic Type Instance Memory Overhead

I don’t know what a “traditional object hierarchy” is. Julia has single-ancestor subtypes, where the leafs are concrete and the rest is abstract types. These are mostly used for governing dispatch. Composition is recommended for what some OO languages solve with inheritance. See

and similar topics.

Also, I would not worry about representation in memory etc, other than what is described in the

https://docs.julialang.org/en/stable/manual/performance-tips/

2 Likes