Re:Porting Graphing Calculator from C++ to Swift
by snovv_crash on Tuesday July 05, 2022 @10:58AM
(#31988992)
Would it be possible to vectorize the mathematical operations so that the hotspot isn't the interpreter?
[ Parent
| on HN ]
Re:Porting Graphing Calculator from C++ to Swift
by avitzur on Tuesday July 05, 2022 @12:34PM
(#31990419)
Yes, the numeric evaluation is vectorized via the Accelerate Framework's vForce and vDSP APIs. That is a significant performance improvement. The numeric evaluation remains a hotspot with vectorization, as that is where the app does most of its work.