Use index based instead of enumerator based enumeration in parsers to avoid allocations.