mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
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!).
13 KiB
13 KiB