Faster dendro parser

One more style nitpick: I think both of these functions can create empty dicts for `*_by_structure`, and return them instead of modifying the inputs