Improve AutolinkFilter#text_parse performance
What does this MR do?
This MR improves the performance of AutolinkFilter#text_parse
by using XPath queries for filtering out most text nodes.
Are there points in the code the reviewer needs to double check?
Mostly the styling of things.
Why was this MR needed?
Parsing text nodes is slow, mostly because most of this happens in Ruby.
What are the relevant issue numbers?
https://gitlab.com/gitlab-org/gitlab-ce/issues/18593
Does this MR meet the acceptance criteria?
-
CHANGELOG entry added -
Documentation created/updated -
API support added - Tests
-
Added for this feature/bug -
All builds are passing
-
-
Conform by the style guides -
Branch has no merge conflicts with master
(if you do - rebase it please) -
Squashed related commits together