While working on swift-doc, I noticed that the a significant chunk of the build time was stuck on this step:
[36/39] Compiling HTMLEntities Constants.swift
Searching around, I found this issue, which described the slow compile time of the large dictionary literal (SR-10209).
Our use of HTMLEntities here is overkill — we need to escape only a handful of characters, and certainly don't need them to have named entities. This PR removes the dependency in favor of a function I borrowed from @NSHipster/HypertextLiteral.
While working on swift-doc, I noticed that the a significant chunk of the build time was stuck on this step:
Searching around, I found this issue, which described the slow compile time of the large dictionary literal (SR-10209).
Our use of
HTMLEntities
here is overkill — we need to escape only a handful of characters, and certainly don't need them to have named entities. This PR removes the dependency in favor of a function I borrowed from @NSHipster/HypertextLiteral.