[SR-6672] 7+ chained optionals makes compilation take a very long time. #49221
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
compiler
The Swift compiler in itself
performance
type checker
Area → compiler: Semantic analysis
Additional Detail from JIRA
md5: 7febdbee7e421e96be4e0eb6f75effb3
Issue Description:
Putting this into "test.swift" and running "swiftc test.swift && ./test" takes many minutes to compile.
However if you have only 6 of the read calls, for example, it takes seconds. 7 or more takes a very long time.
$ swiftc --version
Swift version 4.1-dev (LLVM 67b9a8e8c2, Clang e617c83242, Swift 4c99be4)
Target: x86_64-unknown-linux-gnu
$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 16.04.3 LTS
Release: 16.04
Codename: xenial
The text was updated successfully, but these errors were encountered: