Xcode 6 with Swift super slow typing and autocompletion

后端 未结 11 1274
广开言路
广开言路 2020-11-30 19:05

Is it just me or Xcode 6 (6.0.1) with Swift seems to be super slow when you type your code, especially with autocompletion?

A normal Objective-C cla

11条回答
  •  既然无缘
    2020-11-30 19:45

    SourceKitService is also kinda clumsy to deal with comments in the code and the embedded comments slow it down too.

    so if you can afford to remove the massive blob of embedded comments like this:

    /*
     * comment 
        /*
         * embedded comment
         */
     */
    

    that can definitely help as well.


    NOTE: in my case my Xcode 7.3.1 (7D1014) was literally blocked me typing any letter when the file had about 700 lines of comment with embedded comments. initially I removed that block from that .swift file and Xcode has become alive again. I tried added my comments back part by part by removing embedded comments, it was still slower than usual but it shown significantly better performance if there were no embedded comments.

提交回复
热议问题