Rather than writing code to deal with every possible way the accessibility tree could be modified, Chromium has a general-purpose tree serializer class that's designed to send small incremental ...
When data is read far more often than written, you can afford to organize it once and reuse that work on every query.