Requires Swift 5.9+ (previously 5.7)
Introduces an eagerly-populated index for getElementsByTagName
which adds a small cost to DOM insertion/removal in order to optimize lookups. Instead of traversing the DOM to find matching nodes, it now resolves with a single dictionary lookup.
What's Changed
- fix: make NodeTraversor class open for proper subclassing by @dioKaratzas in #294
- Many performance optimizations by @aehlke in #295
New Contributors
- @dioKaratzas made their first contribution in #294
Full Changelog: 2.7.7...2.8