Forgot to mention - despite all those tree creations, the patch doesn't seem to have any negative performance effect on "normal" files without duplicate tag names. In these files the parsing time dominates and the tree creation is almost invisible (or the visible part is the one coming from https://github.com/geany/geany/pull/475#issuecomment-98514145)
--- Reply to this email directly or view it on GitHub: https://github.com/geany/geany/pull/797#issuecomment-164170893
