A system and related techniques accept extensible application markup
language (XAML) inputs corresponding to object trees, such as those
representing user interface elements, and map those inputs to a binary
construct. A mapping engine may generate tokenized binary outputs
representing the XAML file input and ultimately the associated user
interface or other object. The binary representation generated by the
mapping engine may be optimized in multiple ways, including to encode
dimension information such as length, width etc. of dialog boxes or other
elements in the binary representation without a necessity for explicit
definition. Other optimizations include the type indexing of data types
when a novel instance of the type is first encountered, and embedding
loader definitions to load the object or data reflected in the binary
representation without having to do a lookup against loader lists.