News for hackers. Stuff that matters.
Re:Why is Swift so slow (timeout) in compiling this code? by slavapestov on Tuesday May 30, 2023 @09:22AM (#36124574)
Looks like the time was being spent in LLVM, not the type checker as everyone is assuming here: https://forums.swift.org/t/why-is-swift-so-slow-timeout-in-c...
Re:Why is Swift so slow (timeout) in compiling this code? by thegreatbeanz on Tuesday May 30, 2023 @09:58AM (#36124973)
Interesting that the two highest functions in that trace relate to Bitcode serialization and GlobalISel. Why is Swift serializing Bitcode if it is also running ISEL in the same compile?
Re:Why is Swift so slow (timeout) in compiling this code? by marksands07 on Tuesday May 30, 2023 @04:52PM (#36130611)
Is there anyone on the compiler team that also plays a role in llvm development and optimizations? Or is there anyone on the llvm core team that cares about optimizations that would directly benefit Swift? If there's no one available that either can or is willing to optimize llvm, this feels like a worst case scenario. I'm curious what steps need to be taken to see actual compiler performance gains as it relates to llvm.