Uploaded image for project: 'Swift'
  1. Swift
  2. SR-9184

UTF-8 String Regressions

    XMLWordPrintable

    Details

      Description

      UTF-8 String comes a lot of wins, but some current regressions:

      regressions.md

      This is an ☂️ bug, see Sub-Tasks below.

      Current status of this set of regressions. Note this is only a listing of what were regressions when the PR was merged; omitted benchmarks exhibited improvement:

      • 5.0 currently has parity with 4.2 performance:
        • StringFromLongWholeSubstringGeneric
        • StringComparison_fastPrenormal
        • WordCountUniqueASCII
        • RemoveWhereQuadraticString
        • StringWordBuilder
        • StringHashing_ascii
      • 5.0 is faster than 4.2:
        • SubstringComparble
        • StringFromLongWholeSubstring
        • StringComparison_latin1
        • StringWalk
        • StringEqualPointerComparison
        • Dictionary3
        • StringWordBuilderReservingCapacity
        • StringHasPrefixUnicode
        • Dictionary
        • RemoveWhereFilterString
        • StringInterpolationManySmallSegments
        • StringMatch
        • Join
        • StringBuilderLong
        • RomanNumbers
      • Resolved for Swift 5.0:
        • Chars2: We're happy with the size/speed tradeoff
          • While still slower than 4.2, this is now is significantly smaller in code size (~7x smaller)

      Every single one of these extracted and merged into a single script file normalized to around 1 second each: https://gist.github.com/milseman/737d74fd4a6817432b3b5f18c34d416d

        Attachments

          Activity

            People

            Assignee:
            milseman Michael Ilseman
            Reporter:
            milseman Michael Ilseman
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated: