基于苹果 Accelerate 高性能计算框架封装库。
性能测试对比:
import Surge let numbers: [Double] = ... var sum: Double = 0.0 // Naïve Swift Implementation sum = reduce(numbers, 0.0, +) // Surge Implementation sum = Surge.sum(numbers)