mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
stdlib/String: add a performance FIXME
Swift SVN r19394
This commit is contained in:
@@ -365,6 +365,9 @@ extension String : Collection {
|
||||
++start
|
||||
|
||||
for ; start != end; ++start {
|
||||
// FIXME(performance): consider removing this "fast path". A branch
|
||||
// that is hard to predict could be worse for performance than a few
|
||||
// loads from cache to fetch the property 'gcb1'.
|
||||
if segmenter.isBoundaryAfter(gcb0) {
|
||||
break
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user