Expand description
Shared code lists: the EDIFACT-code-to-name tables, held once instead of once per rule.
A rule that translates a code used to carry the whole table inline. Measured across the mapping tree that was 12136 tables of which 388 were distinct – 12.6 MB of text for 0.12 MB of content, duplicated again into each of the 3566 compiled cache files the runtime image ships. The image went 34 MB over its budget on one format version alone.
So a rule names a list instead of repeating it:
"sts[E01].c556.d9013" = { target = "transaktionsgrund", code_list = "transaktionsgrund" }and mappings/code_lists.toml holds each table once. An inline enum_map
still works and still wins where both are given, because a handful of rules
carry a table nothing else shares and a name for those would be noise.
Structs§
- Code
Lists - Named EDIFACT-code-to-BO4E-name tables.
Constants§
- CODE_
LISTS_ FILE - The file a mappings tree keeps its shared tables in.