Erik Eckstein
777f5aaf7a
SILOptimizer: Replace [].append(contentsOf:) with [].append(element:)
...
if the argument is an array literal.
For example:
arr += [1, 2, 3]
is replaced by:
arr.append(1)
arr.append(2)
arr.append(3)
This gives considerable speedups up to 10x (for our micro-benchmarks which test this).
This is based on the work of @ben-ng, who implemented the first version of this optimization (thanks!).
2017-03-31 17:16:31 -07:00
..
2017-02-24 14:19:11 -08:00
2017-03-31 15:31:57 -07:00
2017-01-06 16:41:22 +01:00
2017-03-30 10:24:29 -07:00
2017-03-29 12:01:23 -07:00
2017-03-25 19:07:52 -07:00
2017-03-29 12:48:22 -07:00
2017-03-28 16:31:09 -07:00
2017-01-06 16:41:22 +01:00
2017-03-23 15:52:54 -07:00
2017-01-06 16:41:22 +01:00
2017-03-30 14:00:44 -07:00
2017-03-29 16:47:28 -07:00
2017-01-06 16:41:22 +01:00
2017-02-17 17:54:15 -08:00
2017-03-29 12:48:22 -07:00
2017-03-21 15:28:11 -07:00
2017-02-17 22:09:25 -08:00
2017-03-15 14:54:55 -07:00
2017-03-25 19:07:52 -07:00
2017-02-16 15:41:50 -05:00
2017-03-27 20:51:02 -07:00
2017-03-29 19:39:39 -07:00
2017-03-29 16:47:28 -07:00
2017-03-29 20:09:35 -07:00
2017-03-31 17:16:31 -07:00
2017-03-01 14:16:38 -08:00
2017-01-06 16:41:22 +01:00
2017-03-23 09:57:11 -04:00
2017-03-23 18:32:10 -07:00
2017-01-03 17:04:24 -08:00
2017-01-03 17:04:16 -08:00
2017-01-13 15:18:39 -08:00
2017-02-25 08:01:13 -08:00