Skip to content

[stdlib] Allow Unicode Encoding to fail #9354

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 7, 2017
Merged

Conversation

dabrahams
Copy link
Contributor

This is needed for encodings such as Latin-1

@dabrahams
Copy link
Contributor Author

@swift-ci Please benchmark

@swift-ci
Copy link
Contributor

swift-ci commented May 6, 2017

Build comment file:

Optimized (O)

Improvement (1)
TEST OLD NEW DELTA SPEEDUP
StringWalk 6369 6027 -5.4% 1.06x (?)
No Changes (268)
TEST OLD NEW DELTA SPEEDUP
AngryPhonebook 2904 2904 +0.0% 1.00x
AnyHashableWithAClass 66359 66392 +0.0% 1.00x (?)
Array2D 2021 2021 +0.0% 1.00x
ArrayAppend 770 772 +0.3% 1.00x (?)
ArrayAppendArrayOfInt 596 597 +0.2% 1.00x (?)
ArrayAppendAscii 24082 24064 -0.1% 1.00x (?)
ArrayAppendFromGeneric 596 596 +0.0% 1.00x
ArrayAppendGenericStructs 1233 1226 -0.6% 1.01x (?)
ArrayAppendLatin1 43355 43355 +0.0% 1.00x
ArrayAppendLazyMap 935 935 +0.0% 1.00x
ArrayAppendOptionals 1224 1220 -0.3% 1.00x (?)
ArrayAppendRepeatCol 837 837 +0.0% 1.00x
ArrayAppendReserved 533 533 +0.0% 1.00x
ArrayAppendSequence 941 943 +0.2% 1.00x (?)
ArrayAppendStrings 13565 13568 +0.0% 1.00x (?)
ArrayAppendToFromGeneric 596 596 +0.0% 1.00x
ArrayAppendToGeneric 596 596 +0.0% 1.00x
ArrayAppendUTF16 40583 40662 +0.2% 1.00x (?)
ArrayInClass 61 61 +0.0% 1.00x
ArrayLiteral 1212 1213 +0.1% 1.00x (?)
ArrayOfGenericPOD 219 219 +0.0% 1.00x
ArrayOfGenericRef 3988 3988 +0.0% 1.00x
ArrayOfPOD 166 166 +0.0% 1.00x
ArrayOfRef 3897 3879 -0.5% 1.00x (?)
ArrayPlusEqualArrayOfInt 596 596 +0.0% 1.00x
ArrayPlusEqualFiveElementCollection 4643 4656 +0.3% 1.00x (?)
ArrayPlusEqualSingleElementCollection 771 771 +0.0% 1.00x
ArrayPlusEqualThreeElements 1596 1597 +0.1% 1.00x (?)
ArraySubscript 1468 1468 +0.0% 1.00x
ArrayValueProp 6 6 +0.0% 1.00x
ArrayValueProp2 6 6 +0.0% 1.00x
ArrayValueProp3 6 6 +0.0% 1.00x
ArrayValueProp4 6 6 +0.0% 1.00x
BitCount 9 9 +0.0% 1.00x
ByteSwap 0 0 +0.0% 1.00x
CStringLongAscii 5040 5036 -0.1% 1.00x (?)
CStringLongNonAscii 2127 2129 +0.1% 1.00x (?)
CStringShortAscii 5303 5311 +0.2% 1.00x (?)
Calculator 33 33 +0.0% 1.00x
CaptureProp 4752 4760 +0.2% 1.00x (?)
CharacterLiteralsLarge 8669 8642 -0.3% 1.00x (?)
CharacterLiteralsSmall 310 311 +0.3% 1.00x (?)
Chars 1776 1776 +0.0% 1.00x
ClassArrayGetter 13 13 +0.0% 1.00x
DeadArray 181 181 +0.0% 1.00x
Dictionary 569 566 -0.5% 1.01x (?)
Dictionary2 1812 1810 -0.1% 1.00x (?)
Dictionary2OfObjects 3315 3309 -0.2% 1.00x (?)
Dictionary3 453 453 +0.0% 1.00x
Dictionary3OfObjects 900 900 +0.0% 1.00x
DictionaryBridge 2768 2795 +1.0% 0.99x (?)
DictionaryLiteral 1481 1480 -0.1% 1.00x (?)
DictionaryOfObjects 2339 2341 +0.1% 1.00x (?)
DictionaryRemove 3686 3686 +0.0% 1.00x
DictionaryRemoveOfObjects 23313 23332 +0.1% 1.00x (?)
DictionarySwap 391 392 +0.3% 1.00x (?)
DictionarySwapOfObjects 6879 6951 +1.0% 0.99x (?)
DropFirstAnyCollection 56 56 +0.0% 1.00x
DropFirstAnyCollectionLazy 45037 44861 -0.4% 1.00x (?)
DropFirstAnySeqCRangeIter 27363 27434 +0.3% 1.00x (?)
DropFirstAnySeqCRangeIterLazy 27340 27429 +0.3% 1.00x (?)
DropFirstAnySeqCntRange 50 50 +0.0% 1.00x
DropFirstAnySeqCntRangeLazy 50 50 +0.0% 1.00x
DropFirstAnySequence 6802 6804 +0.0% 1.00x (?)
DropFirstAnySequenceLazy 6800 6809 +0.1% 1.00x (?)
DropFirstArray 24 24 +0.0% 1.00x
DropFirstArrayLazy 24 24 +0.0% 1.00x
DropFirstCountableRange 32 32 +0.0% 1.00x
DropFirstCountableRangeLazy 32 32 +0.0% 1.00x
DropFirstSequence 3065 3065 +0.0% 1.00x
DropFirstSequenceLazy 3032 3031 -0.0% 1.00x (?)
DropLastAnyCollection 22 22 +0.0% 1.00x
DropLastAnyCollectionLazy 15019 15042 +0.2% 1.00x (?)
DropLastAnySeqCRangeIter 4605 4604 -0.0% 1.00x (?)
DropLastAnySeqCRangeIterLazy 4605 4605 +0.0% 1.00x
DropLastAnySeqCntRange 16 16 +0.0% 1.00x
DropLastAnySeqCntRangeLazy 16 16 +0.0% 1.00x
DropLastAnySequence 6543 6540 -0.0% 1.00x (?)
DropLastAnySequenceLazy 6524 6522 -0.0% 1.00x (?)
DropLastArray 8 8 +0.0% 1.00x
DropLastArrayLazy 8 8 +0.0% 1.00x
DropLastCountableRange 10 10 +0.0% 1.00x
DropLastCountableRangeLazy 10 10 +0.0% 1.00x
DropLastSequence 523 523 +0.0% 1.00x
DropLastSequenceLazy 523 523 +0.0% 1.00x
DropWhileAnyCollection 69 69 +0.0% 1.00x
DropWhileAnyCollectionLazy 103 103 +0.0% 1.00x
DropWhileAnySeqCRangeIter 22424 22174 -1.1% 1.01x (?)
DropWhileAnySeqCRangeIterLazy 103 103 +0.0% 1.00x
DropWhileAnySeqCntRange 64 64 +0.0% 1.00x
DropWhileAnySeqCntRangeLazy 103 103 +0.0% 1.00x
DropWhileAnySequence 7600 7606 +0.1% 1.00x (?)
DropWhileAnySequenceLazy 2032 2032 +0.0% 1.00x
DropWhileArray 37 37 +0.0% 1.00x
DropWhileArrayLazy 78 78 +0.0% 1.00x
DropWhileCountableRange 36 36 +0.0% 1.00x
DropWhileCountableRangeLazy 68 68 +0.0% 1.00x
DropWhileSequence 3123 3124 +0.0% 1.00x (?)
DropWhileSequenceLazy 65 65 +0.0% 1.00x
ErrorHandling 2854 2841 -0.5% 1.00x (?)
GlobalClass 0 0 +0.0% 1.00x
Hanoi 3447 3443 -0.1% 1.00x (?)
HashQuadratic 6335047 6333248 -0.0% 1.00x (?)
HashTest 1698 1697 -0.1% 1.00x (?)
Histogram 246 246 +0.0% 1.00x
Integrate 262 262 +0.0% 1.00x
IterateData 753 753 +0.0% 1.00x
Join 446 446 +0.0% 1.00x
LazilyFilteredArrays 65119 64849 -0.4% 1.00x (?)
LazilyFilteredRange 3885 3887 +0.1% 1.00x (?)
LinkedList 7116 7116 +0.0% 1.00x
MapReduce 303 303 +0.0% 1.00x
MapReduceAnyCollection 302 302 +0.0% 1.00x
MapReduceAnyCollectionShort 1994 1992 -0.1% 1.00x (?)
MapReduceClass 3048 3049 +0.0% 1.00x (?)
MapReduceClassShort 4567 4567 +0.0% 1.00x
MapReduceLazyCollection 15 15 +0.0% 1.00x
MapReduceLazyCollectionShort 44 44 +0.0% 1.00x
MapReduceLazySequence 90 90 +0.0% 1.00x
MapReduceSequence 445 446 +0.2% 1.00x (?)
MapReduceShort 1897 1897 +0.0% 1.00x
MapReduceShortString 22 22 +0.0% 1.00x
MapReduceString 109 109 +0.0% 1.00x
Memset 233 234 +0.4% 1.00x (?)
MonteCarloE 10416 10418 +0.0% 1.00x (?)
MonteCarloPi 44068 44079 +0.0% 1.00x (?)
NSDictionaryCastToSwift 5280 5291 +0.2% 1.00x (?)
NSError 292 291 -0.3% 1.00x (?)
NSStringConversion 729 724 -0.7% 1.01x (?)
NopDeinit 27432 27440 +0.0% 1.00x (?)
ObjectAllocation 182 184 +1.1% 0.99x (?)
ObjectiveCBridgeFromNSArrayAnyObject 23176 23201 +0.1% 1.00x (?)
ObjectiveCBridgeFromNSArrayAnyObjectForced 4519 4519 +0.0% 1.00x
ObjectiveCBridgeFromNSArrayAnyObjectToString 43740 43501 -0.5% 1.01x (?)
ObjectiveCBridgeFromNSArrayAnyObjectToStringForced 37673 37557 -0.3% 1.00x (?)
ObjectiveCBridgeFromNSDictionaryAnyObject 119249 119132 -0.1% 1.00x (?)
ObjectiveCBridgeFromNSDictionaryAnyObjectForced 5107 5108 +0.0% 1.00x (?)
ObjectiveCBridgeFromNSDictionaryAnyObjectToString 95387 98099 +2.8% 0.97x (?)
ObjectiveCBridgeFromNSDictionaryAnyObjectToStringForced 89477 90278 +0.9% 0.99x (?)
ObjectiveCBridgeFromNSSetAnyObject 64610 64790 +0.3% 1.00x (?)
ObjectiveCBridgeFromNSSetAnyObjectForced 4178 4170 -0.2% 1.00x (?)
ObjectiveCBridgeFromNSSetAnyObjectToString 71659 71897 +0.3% 1.00x (?)
ObjectiveCBridgeFromNSSetAnyObjectToStringForced 62505 62625 +0.2% 1.00x (?)
ObjectiveCBridgeFromNSString 1412 1405 -0.5% 1.00x (?)
ObjectiveCBridgeFromNSStringForced 2342 2357 +0.6% 0.99x (?)
ObjectiveCBridgeStubDataAppend 3708 3693 -0.4% 1.00x (?)
ObjectiveCBridgeStubDateAccess 181 181 +0.0% 1.00x
ObjectiveCBridgeStubDateMutation 272 272 +0.0% 1.00x
ObjectiveCBridgeStubFromArrayOfNSString 28480 28685 +0.7% 0.99x (?)
ObjectiveCBridgeStubFromNSDate 3576 3579 +0.1% 1.00x (?)
ObjectiveCBridgeStubFromNSDateRef 3640 3641 +0.0% 1.00x (?)
ObjectiveCBridgeStubFromNSString 930 939 +1.0% 0.99x (?)
ObjectiveCBridgeStubFromNSStringRef 173 176 +1.7% 0.98x (?)
ObjectiveCBridgeStubNSDataAppend 2266 2266 +0.0% 1.00x
ObjectiveCBridgeStubNSDateMutationRef 12285 12307 +0.2% 1.00x (?)
ObjectiveCBridgeStubNSDateRefAccess 347 347 +0.0% 1.00x
ObjectiveCBridgeStubToArrayOfNSString 28484 29012 +1.9% 0.98x (?)
ObjectiveCBridgeStubToNSDate 14323 14342 +0.1% 1.00x (?)
ObjectiveCBridgeStubToNSDateRef 3392 3417 +0.7% 0.99x (?)
ObjectiveCBridgeStubToNSString 1517 1516 -0.1% 1.00x (?)
ObjectiveCBridgeStubToNSStringRef 108 108 +0.0% 1.00x
ObjectiveCBridgeStubURLAppendPath 231450 227879 -1.5% 1.02x (?)
ObjectiveCBridgeStubURLAppendPathRef 229544 233643 +1.8% 0.98x (?)
ObjectiveCBridgeToNSArray 28871 29278 +1.4% 0.99x (?)
ObjectiveCBridgeToNSDictionary 50940 51867 +1.8% 0.98x (?)
ObjectiveCBridgeToNSSet 40331 40656 +0.8% 0.99x (?)
ObjectiveCBridgeToNSString 1269 1268 -0.1% 1.00x (?)
ObserverClosure 2282 2282 +0.0% 1.00x
ObserverForwarderStruct 1128 1129 +0.1% 1.00x (?)
ObserverPartiallyAppliedMethod 3836 3826 -0.3% 1.00x (?)
ObserverUnappliedMethod 2641 2640 -0.0% 1.00x (?)
OpenClose 54 54 +0.0% 1.00x
Phonebook 9723 9726 +0.0% 1.00x (?)
PolymorphicCalls 22 21 -4.5% 1.05x
PopFrontArray 1070 1070 +0.0% 1.00x
PopFrontArrayGeneric 1071 1070 -0.1% 1.00x (?)
PopFrontUnsafePointer 8845 8840 -0.1% 1.00x (?)
PrefixAnyCollection 56 56 +0.0% 1.00x
PrefixAnyCollectionLazy 45134 45116 -0.0% 1.00x (?)
PrefixAnySeqCRangeIter 21604 21652 +0.2% 1.00x (?)
PrefixAnySeqCRangeIterLazy 21579 21634 +0.3% 1.00x (?)
PrefixAnySeqCntRange 50 50 +0.0% 1.00x
PrefixAnySeqCntRangeLazy 50 50 +0.0% 1.00x
PrefixAnySequence 6085 6105 +0.3% 1.00x (?)
PrefixAnySequenceLazy 6090 6088 -0.0% 1.00x (?)
PrefixArray 24 24 +0.0% 1.00x
PrefixArrayLazy 24 24 +0.0% 1.00x
PrefixCountableRange 32 32 +0.0% 1.00x
PrefixCountableRangeLazy 32 32 +0.0% 1.00x
PrefixSequence 2657 2657 +0.0% 1.00x
PrefixSequenceLazy 2617 2617 +0.0% 1.00x
PrefixWhileAnyCollection 96 96 +0.0% 1.00x
PrefixWhileAnyCollectionLazy 75 75 +0.0% 1.00x
PrefixWhileAnySeqCRangeIter 12483 12475 -0.1% 1.00x (?)
PrefixWhileAnySeqCRangeIterLazy 75 75 +0.0% 1.00x
PrefixWhileAnySeqCntRange 90 90 +0.0% 1.00x
PrefixWhileAnySeqCntRangeLazy 75 75 +0.0% 1.00x
PrefixWhileAnySequence 13991 14019 +0.2% 1.00x (?)
PrefixWhileAnySequenceLazy 1492 1492 +0.0% 1.00x
PrefixWhileArray 62 62 +0.0% 1.00x
PrefixWhileArrayLazy 49 49 +0.0% 1.00x
PrefixWhileCountableRange 36 36 +0.0% 1.00x
PrefixWhileCountableRangeLazy 32 32 +0.0% 1.00x
PrefixWhileSequence 294 293 -0.3% 1.00x (?)
PrefixWhileSequenceLazy 28 28 +0.0% 1.00x
Prims 755 756 +0.1% 1.00x (?)
ProtocolDispatch 3030 3030 +0.0% 1.00x
ProtocolDispatch2 168 168 +0.0% 1.00x
RC4 160 160 +0.0% 1.00x
RGBHistogram 2261 2262 +0.0% 1.00x (?)
RGBHistogramOfObjects 24360 24377 +0.1% 1.00x (?)
RangeAssignment 296 296 +0.0% 1.00x
RecursiveOwnedParameter 2324 2325 +0.0% 1.00x (?)
ReversedArray 49 49 +0.0% 1.00x
ReversedBidirectional 28973 29119 +0.5% 0.99x (?)
ReversedDictionary 108 108 +0.0% 1.00x
SetExclusiveOr 2932 2917 -0.5% 1.01x (?)
SetExclusiveOr_OfObjects 9568 9562 -0.1% 1.00x (?)
SetIntersect 281 282 +0.4% 1.00x (?)
SetIntersect_OfObjects 1720 1717 -0.2% 1.00x (?)
SetIsSubsetOf 286 286 +0.0% 1.00x
SetIsSubsetOf_OfObjects 359 359 +0.0% 1.00x
SetUnion 2632 2626 -0.2% 1.00x (?)
SetUnion_OfObjects 8029 8060 +0.4% 1.00x (?)
SevenBoom 1469 1469 +0.0% 1.00x
Sim2DArray 276 276 +0.0% 1.00x
SortLargeExistentials 8389 8393 +0.0% 1.00x (?)
SortLettersInPlace 1144 1144 +0.0% 1.00x
SortSortedStrings 866 865 -0.1% 1.00x (?)
SortStrings 1684 1680 -0.2% 1.00x (?)
SortStringsUnicode 7705 7740 +0.5% 1.00x (?)
StackPromo 22049 22039 -0.0% 1.00x (?)
StaticArray 21 21 +0.0% 1.00x
StrComplexWalk 720 719 -0.1% 1.00x (?)
StrToInt 4493 4496 +0.1% 1.00x (?)
StringAdder 0 0 +0.0% 1.00x
StringBuilder 1298 1299 +0.1% 1.00x (?)
StringBuilderLong 902 905 +0.3% 1.00x (?)
StringEdits 445087 444947 -0.0% 1.00x (?)
StringEqualPointerComparison 7334 7335 +0.0% 1.00x (?)
StringHasPrefix 33 33 +0.0% 1.00x
StringHasPrefixUnicode 14295 14444 +1.0% 0.99x
StringHasSuffix 16 16 +0.0% 1.00x
StringHasSuffixUnicode 61308 61218 -0.1% 1.00x (?)
StringInterpolation 8244 8022 -2.7% 1.03x (?)
StringMatch 9535 9516 -0.2% 1.00x (?)
StringUTF16Builder 2064 2062 -0.1% 1.00x (?)
StringWithCString 125587 125590 +0.0% 1.00x (?)
SuffixAnyCollection 22 22 +0.0% 1.00x
SuffixAnyCollectionLazy 14976 14996 +0.1% 1.00x (?)
SuffixAnySeqCRangeIter 4930 4931 +0.0% 1.00x (?)
SuffixAnySeqCRangeIterLazy 4930 4931 +0.0% 1.00x (?)
SuffixAnySeqCntRange 16 16 +0.0% 1.00x
SuffixAnySeqCntRangeLazy 16 16 +0.0% 1.00x
SuffixAnySequence 6680 6681 +0.0% 1.00x (?)
SuffixAnySequenceLazy 6537 6535 -0.0% 1.00x (?)
SuffixArray 8 8 +0.0% 1.00x
SuffixArrayLazy 8 8 +0.0% 1.00x
SuffixCountableRange 10 10 +0.0% 1.00x
SuffixCountableRangeLazy 11 11 +0.0% 1.00x
SuffixSequence 4489 4491 +0.0% 1.00x (?)
SuffixSequenceLazy 4439 4492 +1.2% 0.99x (?)
SuperChars 313998 314046 +0.0% 1.00x (?)
TwoSum 862 866 +0.5% 1.00x (?)
TypeFlood 0 0 +0.0% 1.00x
UTF8Decode 253 253 +0.0% 1.00x
Walsh 350 349 -0.3% 1.00x (?)
XorLoop 347 347 +0.0% 1.00x
**Unoptimized (Onone)**
Regression (2)
TEST OLD NEW DELTA SPEEDUP
ObjectiveCBridgeStubDataAppend 3684 3952 +7.3% 0.93x (?)
ObjectiveCBridgeFromNSDictionaryAnyObjectForced 7289 7708 +5.7% 0.95x (?)
Improvement (2)
TEST OLD NEW DELTA SPEEDUP
PopFrontUnsafePointer 117704 97486 -17.2% 1.21x
ArrayOfGenericPOD 3249 3065 -5.7% 1.06x
No Changes (265)
TEST OLD NEW DELTA SPEEDUP
AngryPhonebook 3107 3102 -0.2% 1.00x (?)
AnyHashableWithAClass 83976 83305 -0.8% 1.01x
Array2D 600423 607766 +1.2% 0.99x
ArrayAppend 3682 3683 +0.0% 1.00x (?)
ArrayAppendArrayOfInt 652 651 -0.2% 1.00x (?)
ArrayAppendAscii 61112 61120 +0.0% 1.00x (?)
ArrayAppendFromGeneric 656 656 +0.0% 1.00x
ArrayAppendGenericStructs 1296 1304 +0.6% 0.99x (?)
ArrayAppendLatin1 83666 83234 -0.5% 1.01x (?)
ArrayAppendLazyMap 208953 208621 -0.2% 1.00x (?)
ArrayAppendOptionals 1316 1298 -1.4% 1.01x (?)
ArrayAppendRepeatCol 213363 213158 -0.1% 1.00x (?)
ArrayAppendReserved 3307 3306 -0.0% 1.00x (?)
ArrayAppendSequence 75996 75493 -0.7% 1.01x (?)
ArrayAppendStrings 13560 13643 +0.6% 0.99x
ArrayAppendToFromGeneric 654 654 +0.0% 1.00x
ArrayAppendToGeneric 656 656 +0.0% 1.00x
ArrayAppendUTF16 82147 81117 -1.3% 1.01x
ArrayInClass 4734 4734 +0.0% 1.00x
ArrayLiteral 1482 1480 -0.1% 1.00x
ArrayOfGenericRef 9570 9570 +0.0% 1.00x
ArrayOfPOD 1832 1832 +0.0% 1.00x
ArrayOfRef 8728 8731 +0.0% 1.00x (?)
ArrayPlusEqualArrayOfInt 653 653 +0.0% 1.00x
ArrayPlusEqualFiveElementCollection 284802 285075 +0.1% 1.00x (?)
ArrayPlusEqualSingleElementCollection 281125 280454 -0.2% 1.00x (?)
ArrayPlusEqualThreeElements 10157 10147 -0.1% 1.00x (?)
ArraySubscript 4155 4149 -0.1% 1.00x (?)
ArrayValueProp 3041 3044 +0.1% 1.00x (?)
ArrayValueProp2 3649 3655 +0.2% 1.00x (?)
ArrayValueProp3 3428 3429 +0.0% 1.00x (?)
ArrayValueProp4 3327 3325 -0.1% 1.00x (?)
BitCount 889 892 +0.3% 1.00x
ByteSwap 265 265 +0.0% 1.00x
CStringLongAscii 5258 5394 +2.6% 0.97x (?)
CStringLongNonAscii 2384 2419 +1.5% 0.99x
CStringShortAscii 8277 8194 -1.0% 1.01x (?)
Calculator 1182 1165 -1.4% 1.01x
CaptureProp 110996 111136 +0.1% 1.00x (?)
CharacterLiteralsLarge 9943 9773 -1.7% 1.02x
CharacterLiteralsSmall 997 997 +0.0% 1.00x
Chars 7462 7479 +0.2% 1.00x (?)
ClassArrayGetter 930 930 +0.0% 1.00x
DeadArray 116111 114310 -1.6% 1.02x (?)
Dictionary 1666 1672 +0.4% 1.00x (?)
Dictionary2 3474 3480 +0.2% 1.00x (?)
Dictionary2OfObjects 5811 5820 +0.2% 1.00x (?)
Dictionary3 1317 1311 -0.5% 1.00x (?)
Dictionary3OfObjects 2201 2205 +0.2% 1.00x (?)
DictionaryBridge 2865 2974 +3.8% 0.96x (?)
DictionaryLiteral 8195 8209 +0.2% 1.00x (?)
DictionaryOfObjects 4539 4561 +0.5% 1.00x (?)
DictionaryRemove 21231 21131 -0.5% 1.00x
DictionaryRemoveOfObjects 55223 55218 -0.0% 1.00x (?)
DictionarySwap 5485 5427 -1.1% 1.01x
DictionarySwapOfObjects 19632 19756 +0.6% 0.99x (?)
DropFirstAnyCollection 19152 19146 -0.0% 1.00x (?)
DropFirstAnyCollectionLazy 135929 138398 +1.8% 0.98x (?)
DropFirstAnySeqCRangeIter 30090 29815 -0.9% 1.01x
DropFirstAnySeqCRangeIterLazy 30230 29866 -1.2% 1.01x (?)
DropFirstAnySeqCntRange 19169 19180 +0.1% 1.00x
DropFirstAnySeqCntRangeLazy 19190 19148 -0.2% 1.00x (?)
DropFirstAnySequence 13968 14004 +0.3% 1.00x
DropFirstAnySequenceLazy 13969 13990 +0.2% 1.00x
DropFirstArray 6425 6416 -0.1% 1.00x (?)
DropFirstArrayLazy 45565 45245 -0.7% 1.01x (?)
DropFirstCountableRange 337 337 +0.0% 1.00x
DropFirstCountableRangeLazy 38846 38361 -1.2% 1.01x (?)
DropFirstSequence 12919 12898 -0.2% 1.00x
DropFirstSequenceLazy 12912 12903 -0.1% 1.00x
DropLastAnyCollection 6404 6409 +0.1% 1.00x (?)
DropLastAnyCollectionLazy 45240 45561 +0.7% 0.99x (?)
DropLastAnySeqCRangeIter 44135 43957 -0.4% 1.00x (?)
DropLastAnySeqCRangeIterLazy 44220 44078 -0.3% 1.00x (?)
DropLastAnySeqCntRange 6437 6429 -0.1% 1.00x (?)
DropLastAnySeqCntRangeLazy 6407 6410 +0.0% 1.00x (?)
DropLastAnySequence 28933 29008 +0.3% 1.00x
DropLastAnySequenceLazy 29004 29006 +0.0% 1.00x (?)
DropLastArray 2153 2145 -0.4% 1.00x
DropLastArrayLazy 15124 15041 -0.5% 1.01x
DropLastCountableRange 117 117 +0.0% 1.00x
DropLastCountableRangeLazy 12881 12748 -1.0% 1.01x (?)
DropLastSequence 28575 28635 +0.2% 1.00x (?)
DropLastSequenceLazy 28628 28653 +0.1% 1.00x (?)
DropWhileAnyCollection 24950 24875 -0.3% 1.00x (?)
DropWhileAnyCollectionLazy 27550 27194 -1.3% 1.01x
DropWhileAnySeqCRangeIter 32248 31939 -1.0% 1.01x
DropWhileAnySeqCRangeIterLazy 27747 27359 -1.4% 1.01x
DropWhileAnySeqCntRange 24997 24876 -0.5% 1.00x
DropWhileAnySeqCntRangeLazy 27763 27404 -1.3% 1.01x
DropWhileAnySequence 16127 16110 -0.1% 1.00x (?)
DropWhileAnySequenceLazy 12403 12404 +0.0% 1.00x
DropWhileArray 9933 9941 +0.1% 1.00x (?)
DropWhileArrayLazy 16894 16896 +0.0% 1.00x (?)
DropWhileCountableRange 6135 6071 -1.0% 1.01x
DropWhileCountableRangeLazy 26161 26227 +0.3% 1.00x
DropWhileSequence 15031 15095 +0.4% 1.00x
DropWhileSequenceLazy 11196 11239 +0.4% 1.00x
ErrorHandling 3809 3827 +0.5% 1.00x (?)
GlobalClass 0 0 +0.0% 1.00x
Hanoi 17544 17561 +0.1% 1.00x (?)
HashQuadratic 47939714 49281239 +2.8% 0.97x
HashTest 18565 18431 -0.7% 1.01x (?)
Histogram 8685 8703 +0.2% 1.00x (?)
Integrate 398 398 +0.0% 1.00x
IterateData 12919 12936 +0.1% 1.00x (?)
Join 1261 1261 +0.0% 1.00x
LazilyFilteredArrays 1688472 1700062 +0.7% 0.99x (?)
LazilyFilteredRange 694984 713068 +2.6% 0.97x
LinkedList 33135 33137 +0.0% 1.00x (?)
MapReduce 37585 37512 -0.2% 1.00x (?)
MapReduceAnyCollection 37592 37538 -0.1% 1.00x
MapReduceAnyCollectionShort 50108 50044 -0.1% 1.00x (?)
MapReduceClass 43342 43232 -0.3% 1.00x (?)
MapReduceClassShort 54501 54192 -0.6% 1.01x (?)
MapReduceLazyCollection 32676 32771 +0.3% 1.00x (?)
MapReduceLazyCollectionShort 44458 44504 +0.1% 1.00x (?)
MapReduceLazySequence 25318 25794 +1.9% 0.98x (?)
MapReduceSequence 41131 41065 -0.2% 1.00x (?)
MapReduceShort 49594 49813 +0.4% 1.00x (?)
MapReduceShortString 275 278 +1.1% 0.99x (?)
MapReduceString 2596 2591 -0.2% 1.00x
Memset 43967 43983 +0.0% 1.00x (?)
MonteCarloE 135073 134939 -0.1% 1.00x (?)
MonteCarloPi 52656 52643 -0.0% 1.00x (?)
NSDictionaryCastToSwift 6416 6420 +0.1% 1.00x (?)
NSError 701 703 +0.3% 1.00x (?)
NSStringConversion 1309 1328 +1.5% 0.99x
NopDeinit 54791 54798 +0.0% 1.00x (?)
ObjectAllocation 633 632 -0.2% 1.00x (?)
ObjectiveCBridgeFromNSArrayAnyObject 25602 24733 -3.4% 1.04x (?)
ObjectiveCBridgeFromNSArrayAnyObjectForced 7808 8128 +4.1% 0.96x (?)
ObjectiveCBridgeFromNSArrayAnyObjectToString 45048 44518 -1.2% 1.01x (?)
ObjectiveCBridgeFromNSArrayAnyObjectToStringForced 38961 39039 +0.2% 1.00x (?)
ObjectiveCBridgeFromNSDictionaryAnyObject 126085 124172 -1.5% 1.02x (?)
ObjectiveCBridgeFromNSDictionaryAnyObjectToString 104145 104523 +0.4% 1.00x (?)
ObjectiveCBridgeFromNSDictionaryAnyObjectToStringForced 93142 93100 -0.0% 1.00x (?)
ObjectiveCBridgeFromNSSetAnyObject 68051 68065 +0.0% 1.00x (?)
ObjectiveCBridgeFromNSSetAnyObjectForced 7075 7262 +2.6% 0.97x (?)
ObjectiveCBridgeFromNSSetAnyObjectToString 76982 76806 -0.2% 1.00x (?)
ObjectiveCBridgeFromNSSetAnyObjectToStringForced 66748 66799 +0.1% 1.00x (?)
ObjectiveCBridgeFromNSString 4098 4051 -1.1% 1.01x (?)
ObjectiveCBridgeFromNSStringForced 2705 2726 +0.8% 0.99x
ObjectiveCBridgeStubDateAccess 1031 1031 +0.0% 1.00x
ObjectiveCBridgeStubDateMutation 485 485 +0.0% 1.00x
ObjectiveCBridgeStubFromArrayOfNSString 28591 28881 +1.0% 0.99x (?)
ObjectiveCBridgeStubFromNSDate 3988 3985 -0.1% 1.00x (?)
ObjectiveCBridgeStubFromNSDateRef 4153 4143 -0.2% 1.00x (?)
ObjectiveCBridgeStubFromNSString 972 971 -0.1% 1.00x (?)
ObjectiveCBridgeStubFromNSStringRef 205 204 -0.5% 1.00x
ObjectiveCBridgeStubNSDataAppend 2571 2596 +1.0% 0.99x (?)
ObjectiveCBridgeStubNSDateMutationRef 15210 15957 +4.9% 0.95x (?)
ObjectiveCBridgeStubNSDateRefAccess 1203 1202 -0.1% 1.00x (?)
ObjectiveCBridgeStubToArrayOfNSString 29207 29327 +0.4% 1.00x (?)
ObjectiveCBridgeStubToNSDate 14759 15257 +3.4% 0.97x (?)
ObjectiveCBridgeStubToNSDateRef 3393 3363 -0.9% 1.01x (?)
ObjectiveCBridgeStubToNSString 1567 1568 +0.1% 1.00x (?)
ObjectiveCBridgeStubToNSStringRef 149 149 +0.0% 1.00x
ObjectiveCBridgeStubURLAppendPath 233736 239146 +2.3% 0.98x
ObjectiveCBridgeStubURLAppendPathRef 238149 235194 -1.2% 1.01x (?)
ObjectiveCBridgeToNSArray 29224 29321 +0.3% 1.00x (?)
ObjectiveCBridgeToNSDictionary 51747 52314 +1.1% 0.99x (?)
ObjectiveCBridgeToNSSet 40863 41373 +1.2% 0.99x (?)
ObjectiveCBridgeToNSString 1307 1307 +0.0% 1.00x
ObserverClosure 6623 6627 +0.1% 1.00x (?)
ObserverForwarderStruct 4707 4681 -0.6% 1.01x
ObserverPartiallyAppliedMethod 8111 8098 -0.2% 1.00x (?)
ObserverUnappliedMethod 8470 8428 -0.5% 1.00x (?)
OpenClose 423 418 -1.2% 1.01x
Phonebook 24840 24813 -0.1% 1.00x
PolymorphicCalls 2941 2917 -0.8% 1.01x (?)
PopFrontArray 7483 7484 +0.0% 1.00x (?)
PopFrontArrayGeneric 6497 6488 -0.1% 1.00x (?)
PrefixAnyCollection 19189 19152 -0.2% 1.00x (?)
PrefixAnyCollectionLazy 136439 136438 -0.0% 1.00x (?)
PrefixAnySeqCRangeIter 24286 23995 -1.2% 1.01x (?)
PrefixAnySeqCRangeIterLazy 24368 24161 -0.8% 1.01x
PrefixAnySeqCntRange 19202 19128 -0.4% 1.00x
PrefixAnySeqCntRangeLazy 19211 19151 -0.3% 1.00x
PrefixAnySequence 11819 11820 +0.0% 1.00x (?)
PrefixAnySequenceLazy 11814 11781 -0.3% 1.00x
PrefixArray 6424 6447 +0.4% 1.00x
PrefixArrayLazy 45567 45229 -0.7% 1.01x
PrefixCountableRange 339 339 +0.0% 1.00x
PrefixCountableRangeLazy 38897 38294 -1.6% 1.02x (?)
PrefixSequence 10735 10683 -0.5% 1.00x (?)
PrefixSequenceLazy 10740 10754 +0.1% 1.00x
PrefixWhileAnyCollection 36714 36267 -1.2% 1.01x
PrefixWhileAnyCollectionLazy 22773 22507 -1.2% 1.01x (?)
PrefixWhileAnySeqCRangeIter 41624 41715 +0.2% 1.00x (?)
PrefixWhileAnySeqCRangeIterLazy 22788 22536 -1.1% 1.01x
PrefixWhileAnySeqCntRange 36763 36492 -0.7% 1.01x (?)
PrefixWhileAnySeqCntRangeLazy 22810 22580 -1.0% 1.01x
PrefixWhileAnySequence 29800 29737 -0.2% 1.00x (?)
PrefixWhileAnySequenceLazy 11307 11344 +0.3% 1.00x
PrefixWhileArray 16981 16967 -0.1% 1.00x (?)
PrefixWhileArrayLazy 14716 14710 -0.0% 1.00x (?)
PrefixWhileCountableRange 17685 17482 -1.1% 1.01x
PrefixWhileCountableRangeLazy 21723 21704 -0.1% 1.00x
PrefixWhileSequence 28299 28262 -0.1% 1.00x
PrefixWhileSequenceLazy 10404 10427 +0.2% 1.00x
Prims 8907 8921 +0.2% 1.00x (?)
ProtocolDispatch 7076 7167 +1.3% 0.99x (?)
ProtocolDispatch2 490 490 +0.0% 1.00x
RC4 19305 19600 +1.5% 0.98x (?)
RGBHistogram 34215 34217 +0.0% 1.00x (?)
RGBHistogramOfObjects 99265 99646 +0.4% 1.00x (?)
RangeAssignment 5679 5663 -0.3% 1.00x (?)
RecursiveOwnedParameter 9664 9656 -0.1% 1.00x (?)
ReversedArray 581 581 +0.0% 1.00x
ReversedBidirectional 75246 75464 +0.3% 1.00x (?)
ReversedDictionary 25835 25831 -0.0% 1.00x (?)
SetExclusiveOr 21254 21129 -0.6% 1.01x (?)
SetExclusiveOr_OfObjects 41176 41252 +0.2% 1.00x (?)
SetIntersect 10729 10772 +0.4% 1.00x (?)
SetIntersect_OfObjects 11282 11391 +1.0% 0.99x
SetIsSubsetOf 1635 1633 -0.1% 1.00x
SetIsSubsetOf_OfObjects 1512 1522 +0.7% 0.99x
SetUnion 12132 12038 -0.8% 1.01x (?)
SetUnion_OfObjects 29542 29577 +0.1% 1.00x (?)
SevenBoom 1610 1601 -0.6% 1.01x (?)
Sim2DArray 30022 30018 -0.0% 1.00x (?)
SortLargeExistentials 17819 17928 +0.6% 0.99x (?)
SortLettersInPlace 2865 2863 -0.1% 1.00x (?)
SortSortedStrings 1404 1402 -0.1% 1.00x (?)
SortStrings 2466 2451 -0.6% 1.01x
SortStringsUnicode 8851 8688 -1.8% 1.02x
StackPromo 105176 102287 -2.7% 1.03x (?)
StaticArray 4563 4560 -0.1% 1.00x (?)
StrComplexWalk 6846 6848 +0.0% 1.00x (?)
StrToInt 5243 5349 +2.0% 0.98x
StringAdder 46 45 -2.2% 1.02x
StringBuilder 2753 2768 +0.5% 0.99x (?)
StringBuilderLong 1104 1111 +0.6% 0.99x (?)
StringEdits 737901 743522 +0.8% 0.99x (?)
StringEqualPointerComparison 9672 9669 -0.0% 1.00x (?)
StringHasPrefix 1779 1717 -3.5% 1.04x
StringHasPrefixUnicode 15692 16170 +3.0% 0.97x
StringHasSuffix 1808 1785 -1.3% 1.01x
StringHasSuffixUnicode 63664 63639 -0.0% 1.00x (?)
StringInterpolation 11927 11905 -0.2% 1.00x (?)
StringMatch 30899 31158 +0.8% 0.99x
StringUTF16Builder 3531 3585 +1.5% 0.98x
StringWalk 21024 21025 +0.0% 1.00x (?)
StringWithCString 134060 136189 +1.6% 0.98x
SuffixAnyCollection 6424 6384 -0.6% 1.01x
SuffixAnyCollectionLazy 45340 46295 +2.1% 0.98x (?)
SuffixAnySeqCRangeIter 41787 41529 -0.6% 1.01x
SuffixAnySeqCRangeIterLazy 42279 42869 +1.4% 0.99x
SuffixAnySeqCntRange 6395 6411 +0.3% 1.00x
SuffixAnySeqCntRangeLazy 6419 6409 -0.2% 1.00x (?)
SuffixAnySequence 26755 26781 +0.1% 1.00x (?)
SuffixAnySequenceLazy 26910 26737 -0.6% 1.01x
SuffixArray 2148 2148 +0.0% 1.00x
SuffixArrayLazy 15122 15055 -0.4% 1.00x
SuffixCountableRange 117 117 +0.0% 1.00x
SuffixCountableRangeLazy 12898 12748 -1.2% 1.01x (?)
SuffixSequence 26375 26378 +0.0% 1.00x (?)
SuffixSequenceLazy 26381 26414 +0.1% 1.00x (?)
SuperChars 349052 352364 +0.9% 0.99x (?)
TwoSum 4326 4322 -0.1% 1.00x (?)
TypeFlood 165 166 +0.6% 0.99x (?)
UTF8Decode 36904 36867 -0.1% 1.00x (?)
Walsh 11923 11959 +0.3% 1.00x (?)
XorLoop 23706 23706 +0.0% 1.00x
**Hardware Overview** Model Name: Mac mini Model Identifier: Macmini7,1 Processor Name: Intel Core i5 Processor Speed: 2.8 GHz Number of Processors: 1 Total Number of Cores: 2 L2 Cache (per Core): 256 KB L3 Cache: 3 MB Memory: 16 GB

@dabrahams
Copy link
Contributor Author

@swift-ci Please smoke test and merge

This is needed for encodings such as Latin-1
@dabrahams dabrahams force-pushed the failable-unicode-encoding branch from 3135347 to 796d004 Compare May 6, 2017 23:54
@dabrahams
Copy link
Contributor Author

@swift-ci Please smoke test and merge

@swift-ci swift-ci merged commit 7925886 into master May 7, 2017
@jrose-apple jrose-apple deleted the failable-unicode-encoding branch November 29, 2017 22:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants