[SR-10137] “class” and “final class” between swift 4.2 and swift 5 (performance) #52539
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
compiler
The Swift compiler in itself
performance
regression
swift 5.0
Attachment: Download
Environment
Linux 156974-vds-admin.gmhost.pp.ua 4.9.0-3-amd64 #1 SMP Debian 4.9.30-2+deb9u5 (2017-09-19) x86_64 GNU/Linux
Swift version 5.0-dev (LLVM 3207a50965, Clang 107de882f4, Swift 4d6e741)
Target: x86_64-unknown-linux-gnu
Additional Detail from JIRA
md5: 731c650729f8698e9aed68f26ae13d74
Issue Description:
Sorry, my english is very bad...
Please tell me why this code(without "final class") executing with so big difference like 4 vs 25 seconds between versions 4.2 and 5 ?
swiftc -Ounchecked -whole-module-optimization -Xcc -O2
https://github.com/woodcrust/puffin_bench/blob/master/source/2-sortGlobalArray/swift2_final_class.swift 18
https://github.com/woodcrust/puffin_bench/blob/master/source/2-sortGlobalArray/swift2_class.swift 13
I saw article about Increasing Performance by Reducing Dynamic Dispatch
https://developer.apple.com/swift/blog/?id=27
But 4 vs 25 seconds on different versions ... looks like performance regression
For repeat this issue on linux
run.sh contains compile commands and execute test code
https://github.com/woodcrust/puffin_bench/blob/master/run.sh
The text was updated successfully, but these errors were encountered: