Xcode 7.3、Swift 2.2 故事板極慢 (Xcode 7.3, Swift 2.2 Storyboards Extremely Slow)


問題描述

Xcode 7.3、Swift 2.2 故事板極慢 (Xcode 7.3, Swift 2.2 Storyboards Extremely Slow)

我正在開發一個巨大的應用程序,並且自從更新到 Xcode 7.3 後,在 Storyboard 中做任何事情都像糖蜜一樣!!

大約一個月前,我使用一個 HUGE Storyboard 的速度大致相同,所以我把項目分成 5 個獨立的故事板,哈利路亞,快了一百倍!但是現在,更新後,竟然分到了7;盡可能慢!我將要備份,然後嘗試重新創建一個大的,然後再次備份,然後再次分割 ‑ 看看是否有任何作用;但我很懷疑。

有人知道如何解決這個問題,或者最新的更新有什麼問題嗎?


參考解法

方法 1:

Well, not a great solution but, all I can determine is that; if the number of items and constraints in the view gets over a certain amount (using Xcode 7.3), the speed suddenly drops horribly. So what I ended up having to do with this last storyboard (8 of 8) is to take a slide out side pane full of buttons and subviews, and place it in a container view ‑ so that I could give it its own VC and thereby make it a stand alone 9th storyboard.

Not a great solution that's for sure, especially since I had to tie all of the buttons and methods to the parent view controller. I was lucky in this event in that the parent view (my main app map) is a single instance occurrence so I was able to reference it at launch, and merely prefix my former methods with the reference. If this was not so, I guess I would have to have done some serious protocol / delegation.

So, a proper solution (or 'fix' if it is Xcode's doing) is still wanting :)

(by AroniousnessAroniousness)

參考文件

  1. Xcode 7.3, Swift 2.2 Storyboards Extremely Slow (CC BY‑SA 2.5/3.0/4.0)

#performance #xcode7.3 #storyboard #XCode #swift2.2






相關問題

為什麼 Document.html() 這麼慢? (Why is Document.html() so slow?)

Sql中的WHERE,結合兩個快速條件會成倍增加成本 (WHERE in Sql, combining two fast conditions multiplies costs many times)

Tối ưu hóa truy vấn MySQL PHP - Phản hồi (MySQL PHP Query Optimization - Feedbacks)

jGRASP 上的編譯時間很慢——為什麼? (Slow compile times on jGRASP -- why?)

Pandas - 將直方圖桶分配給每一行 (Pandas - assign histogram bucket to each row)

VB.NET 中 Dictionary(Of String, SomeReferenceType) 的性能 (Performance of Dictionary(Of String, SomeReferenceType) in VB.NET)

發送到 Web 客戶端需要多少 JSON? (How much is too much JSON to send over to a web client?)

過期/緩存控制標頭的問題 (Problem with Expires/Cache-Control Headers)

iOS UI 性能分析 (iOS UI performance profiling)

限制內存機器性能的技巧?IIS 應用程序 (Tips for limit memory machine performance? IIS application)

監控 Rails 中站點性能的最佳方法是什麼 (What is the best approach to monitor site performance in rails)

決定 HTTP 標頭的字符集。我應該簡單地把 utf-8 和 fuggedaboutit 放在一起嗎? (Deciding charset for HTTP Headers. Should i simply put utf-8 and fuggedaboutit?)







留言討論