Page MenuHomePhabricator

Improve finding utterance/token from node
Closed, InvalidPublic

Description

The logic for getting utterances and tokens from DOM nodes is not very elegant or efficient. While this hasn't been known to cause any major slow downs, it may well for slower machines and/or larger pages.

Suggested solution
Map the nodes to utterances and/or tokens. This would make it much quicker to look up. The XPath expression should probably be used for keys, since the actual nodes may change or get removed during highlighting.