Files
swift-mirror/include/swift
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-01-06 16:41:22 +01:00
2017-01-06 16:41:22 +01:00
2017-01-06 16:41:22 +01:00