mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[SyntaxModel] When searching URLs in doc comments, reduce the number of protocol name comparisons by looking ahead more characters, NFC. rdar://28298506 Searching URL in doc comments can be expensive. We used to look for every colon as an indicator of potential URLs. However, this is not efficient enough. Suggested by Ben, we further divide protocols into categories so that most protocols can use "://" as an indicator of its existence. Not sure whether this is enough to close the radar, but I believe it is a valuable performance improvement anyway.
54 KiB
54 KiB