Commit Graph

21 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
4535d51593 [stdlib] Added initializeFrom to array functions
Added to all functions that don't use _expectEnd.

Swift SVN r25017
2015-02-05 21:31:19 +00:00
Maxwell Swadling
8e95156b0b [stdlib] added @noescape to withUnsafeBufferPointer functions
rdar://problem/19389247

Swift SVN r24969
2015-02-04 19:49:05 +00:00
Dave Abrahams
0c17537602 Revert "[stdlib] use initializeTo instead of loops"
This reverts r24743, because it broke some of the tests that Chris
disabled.

Swift SVN r24932
2015-02-04 01:53:11 +00:00
Maxwell Swadling
1587f11064 [stdlib] use initializeTo instead of loops
This improves performance of arrays and buffers.

Swift SVN r24743
2015-01-27 02:12:24 +00:00
Maxwell Swadling
a86572c9a9 [stdlib] Updated APIs to use C.Generator.Element
Swift SVN r24740
2015-01-27 02:12:19 +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
John McCall
3be27ad22b Adopt safe addressors in Swift's Array family of types.
rdar://190323998

Swift SVN r24599
2015-01-21 09:12:49 +00:00
Dave Abrahams
f16a6b0897 [stdlib] Kill some dead code
Swift SVN r24543
2015-01-20 00:53:17 +00:00
Dmitri Hrybenko
730025e939 stdlib: fix spelling of 'Objective-C'
Swift SVN r24437
2015-01-15 02:41:09 +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
2794fe3a13 [stdlib] Restore a combination of 11 commits
...but remove all new uses of closures, to make things easier on the
optimizer.

Swift SVN r23183
2014-11-08 20:04:29 +00:00
Dave Abrahams
c77d7e353c Revert a combination of 11 commits
These commits are suspected of causing performance regressions:

r22995, "[stdlib] Array nil state elimination, part trois"
r22994, "[stdlib] Array nil-state elimination II"
r22993, "[stdlib] Array nil-state elimination I"
r22992, "[stdlib] Still more nil buffer elimination"
r22991, "[stdlib] Nix an unneeded typealias"
r22988, "[stdlib] Nix _ContiguousArrayBuffer._base, part deux"
r22986, "[stdlib] Kill _ContiguousArrayBuffer._base, part I"
r22985, "[stdlib] destroy redundant property"
r22975, "[stdlib] More array nil-state destruction"
r22974, "[stdlib] Construct HeapBuffer without AnyObject"
r22959, "[stdlib] non-nil ContiguousArray"

Swift SVN r23001
2014-10-29 02:57:45 +00:00
Dave Abrahams
f7bf9bf16d [stdlib] Still more nil buffer elimination
Swift SVN r22992
2014-10-28 18:00:55 +00:00
Dave Abrahams
c06e89960b [stdlib] Kill _ContiguousArrayBuffer._base, part I
Remove external dependencies

Swift SVN r22986
2014-10-28 03:58:40 +00:00
Dave Abrahams
7c8364fb52 [stdlib] More array nil-state destruction
Baby steps.

Swift SVN r22975
2014-10-27 22:36:24 +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
418aa75eb2 [stdlib] Rename _NSSwiftXXX => _SwiftNativeNSXXX
...to better reflect the purpose of these classes

Swift SVN r22911
2014-10-24 15:48:46 +00:00
Dave Abrahams
981a156823 [stdlib] Add _UnitTestArray[Buffer] temporarily
We're going to replace StdlibUnittest's use of ContiguousArray with
_UnitTestArray so that we can work on (and potentially break)
_ContiguousArray and still get useful test results.  When refactoring is
complete, we can optionally replace StdlibUnittest's use of
_UnitTestArray with ContiguousArray, or move the decoupled component
into the StdlibUnittest module.

Swift SVN r22874
2014-10-22 05:28:22 +00:00