Skip to main content
Answered

SwiftUI application using Intercom SDK cause slow launch time

  • November 8, 2024
  • 6 replies
  • 73 views

Forum|alt.badge.img

We’re experiencing a slow launch time in our SwiftUI app, about 35% of the slow launch time is caused by Intercom initialization. 

 

The stack trace indicates that multiple functions within the Intercom SDK, especially the initialization processes involving IMCCrashHandler, IMCConfig, HomeConfig, and HomeHeader, are contributing significantly to app launch latency. The UIKitCore and CoreImage components (like UIGraphicsImageRenderer and CIImage) invoked through ICAssets.backgroundImageViewWith also add processing overhead, which may impact the performance during launch.

Here is the full stack trace given by XCodes tools:

dyld start

1. App.main() - SwiftUI
2. AppDelegate.application(_:didFinishLaunchingWithOptions:) - SwiftUI
3. IMCCrashHandler swizzleDidFinishLaunchingWithOptions - Intercom
    └ IMCCrashHandler sharedConfig - Intercom
4. IntercomSDK_SentrySDK startWithConfigureOptions - Intercom
5. IMCCrashHandler configureTags - Intercom
6. IMCConfig sharedConfig - Intercom
7. IMCConfig configFromDisk - Intercom
8. IMCPersistenceProxy unarchiveObjectWithFile - Intercom
    └ NSKeyedUnarchiver unarchivedObjectOfClass:fromData:error: - Foundation
9. ConfigModules.init(coder:) - Intercom
10. HomeConfig.init(coder:) - Intercom
11. HomeHeader.init(coder:) - Intercom
12. HomeHeaderBackground.init(coder:) - Intercom
13. ICAssets.backgroundImageViewWith(L:) - Intercom
14. UIGraphicsImageRenderer imageWithActions - UIKitCore
15. CIImage imageByApplyingGaussianBlurWithSigma - CoreImage

We are using version 18.2.0 of the library.

Best answer by bernice

Hi ​@Jérémie, thanks for reaching out 👋 Given the nature of this query and that we’ll likely need some further details here, I’m going to pass this over to the support team to take further action on this issue for you. We’ll be in touch over the Messenger and with updates here 💬

View original
Did this topic help you find an answer to your question?

6 replies

bernice
Intercom Team
Forum|alt.badge.img+5
  • Intercom Team
  • 230 replies
  • Answer
  • November 25, 2024

Hi ​@Jérémie, thanks for reaching out 👋 Given the nature of this query and that we’ll likely need some further details here, I’m going to pass this over to the support team to take further action on this issue for you. We’ll be in touch over the Messenger and with updates here 💬


Forum|alt.badge.img
  • Author
  • Connector
  • 5 replies
  • December 2, 2024

Thank you, let me know if you need more details...


Forum|alt.badge.img
  • Author
  • Connector
  • 5 replies
  • December 2, 2024

Here is the full stack trace  ​@bernice 


bernice
Intercom Team
Forum|alt.badge.img+5
  • Intercom Team
  • 230 replies
  • December 3, 2024

Thank you ​@Jérémie! This has been passed over to the team now, I’ll relay any solutions here 🙂


  • New Participant
  • 2 replies
  • December 3, 2024

ดำเนินการเรียบร้อยแล้ว หากมีแนวทางแก้ไขอย่างไ


  • New Participant
  • 2 replies
  • December 3, 2024
chaloem5 wrote:

ดำเนินการเรียบร้อยแล้ว หากมีแนวทางแก้ไขอย่างไ

 


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings