Commit Graph

12 Commits

Author SHA1 Message Date
Dmitri Hrybenko
b158753ae4 stdlib: coding style: add parentheses to one-argument closures for
consistency with the rest of the library

Swift SVN r25036
2015-02-06 05:38:15 +00:00
Maxwell Swadling
7ba5e6a575 [stdlib] added @noescape to Array functions
rdar://problem/19389247

Swift SVN r24970
2015-02-04 19:49:06 +00:00
Dmitri Hrybenko
bbf79427ac stdlib: remove bitwise operations on Bool
Bitwise operations on Bool are redundant with other logic operations
that stdlib already provides.  The only reason to have them was to avoid
branching in the short-circuiting && and ||.

rdar://19340952

Surprisingly, replacing & and | in the standard library with && and ||
brought performance improvements and no significant performance
regressions:

RecursiveOwnedParameter 1.14
SelectionSort 1.19

Swift SVN r24674
2015-01-23 03:09:55 +00:00
Maxwell Swadling
374df28991 Revert "[stdlib] Set automaticallyNotifiesObserversForKey to false"
Adding this complexity does not offer any significant improvements.

This reverts commit r24467.
Git commit: c17e2294e4e100bfc44efe792523c314a38cec47.

Swift SVN r24481
2015-01-16 22:47:44 +00:00
Maxwell Swadling
92e55287aa [stdlib] Set automaticallyNotifiesObserversForKey to false
automaticallyNotifiesObserversForKey is now false for Array, Dictionary
and Set (since they can not be mutated).

Fixes rdar://problem/19404025

Swift SVN r24467
2015-01-16 01:25:51 +00:00
Graham Batty
dc6a776d10 stdlib: Use config directives to work without objective-c.
Swift SVN r23211
2014-11-10 20:06:25 +00:00
Graham Batty
373414864d Revert "Use config directives to carve out a 'portable' kernel stdlib."
This reverts commit r23202 pending further discussion.

Swift SVN r23205
2014-11-10 18:46:42 +00:00
Graham Batty
dfa260fab1 Use config directives to carve out a 'portable' kernel stdlib.
Swift SVN r23202
2014-11-10 18:03:09 +00:00
Dave Abrahams
2c48f57c30 [stdlib] Sanity checks for empty array buffer
Swift SVN r23190
2014-11-09 04:53:33 +00:00
Dave Abrahams
df016d35f3 [stdlib] _ContiguousArrayStorageBase : NSArray
Every _ContiguousArrayStorageBase that stores objects now is-a NSArray.
No specific testing yet.

Swift SVN r22937
2014-10-25 01:08:20 +00:00
Dave Abrahams
6786969209 [stdlib] Introduce _SwiftDeferredNSArray
This is mostly just a renaming of _SwiftNativeNSArray, except that we
want to add another NSArray subclass for verbatim-bridged elements, so
we want a common base class.  _SwiftNativeNSArray is the name of that
new base class, to parallel the other _SwiftNativeNSXXX classes.

Swift SVN r22913
2014-10-24 15:48:48 +00:00
Dave Abrahams
ce99c04938 [stdlib] mv files NSSwiftXXX => SwiftNativeNSXXX
Swift SVN r22912
2014-10-24 15:48:47 +00:00