-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Firebase significantly contributes to iOS app launch time #13232
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
10.27.0 addressed a startup time issue in Crashlytics that may be related to the top item in the list. Please update and let us know if the slowdown is still occurring. |
Hey @mkj-is. We need more information to resolve this issue but there hasn't been an update in 5 weekdays. I'm marking the issue as stale and if there are no new updates in the next 5 days I will close it automatically. If you have more information that will help us get to the bottom of this, just add a comment! |
We currently have 10.22.0 in production. When we tested the latest version (10.29.0) we were not able to see any improvements. |
There is a new strack trace since we updated to Firebase 10.29.0:
Our metrics show the Firebase init increased by 30 ms on iOS and 100 ms on tvOS due to this update. We are not using RemoteConfig, it is automatically included as a dependency of FirebasePerformance. |
@mkj-is Curious if you are still affected by this? And are you still using 10.29.0, or perhaps updated to 11.5.0 (current) and if the problem persists or not? This problem appears to be similar to #13675 as well. I'm investigating recent slowdowns in my app's launch time (we're shipping 11.4.0 and developing with 11.5.0), and while I'm still digging through Instruments data, it seems Firebase may be involved with the main thread in ways it maybe should not be (supported by @paulb777 's comment here: #13675 (comment) ) Anyways, curious if the problem persists for you or if you've had improvements. Thanks. |
@hsoi We are still on 10.29.0. We did some app start optimizations on our side recently. Xcode Organizer Launch reports now show Firebase related stack traces are responsible for 56 % of slow app launches for our app, majority of it is P90 for iOS and Apple TV Firebase configure call is around 180 ms. |
@hsoi Do we have any update on this? |
@sharanbasappa95 I'm not sure what update you're looking for from me - I'm just a user (still) affected by this issue too. Could you please clarify what you're looking for? |
@hsoi wrongly tagged you instead of firebase team. |
I'm using version 11.2.0, which still shows the Firebase SDK taking a lot of time to launch in xcode. Has anyone tried using the latest version 11.6? |
@ncooke3 Any update on this? |
Any update on this? |
11.9.0 that released this week included some launch time improvements, although not necessarily all of those referenced here. |
@paulb777 Can you provide some data, such as how much it has been optimized? |
@songzhiming We weren't able to exactly reproduce the long launch time problems reported. We found and fixed some unnecessary synchronization in Firebase Analytics that could contribute to the problem. cc: @morganchen12 |
Everyone else in the world is facing an issue but you are not able to reproduce 👎 |
I am using Firebase SDK 11.9.0, but still facing the high launching time. Any suggestions here? |
We profiled our app with Firebase 11.9.0, but most of the resource intensive stack traces are still there. We have not been able to see any meaningful improvements as of yet. |
Firebase 11.11.0 included a fix for a Firebase Analytics performance issue. |
Still has this issue in Firebase 11.11.0 😭 |
Hey folks, we just made a change that should improve the startup time of Crashlytics. It'll be included in the next Firebase SDK release. If you'd like to test it out early it's on this PR: #14754. |
Closing since the fix is merged and is planned to release with 11.13.0 the week of May 15 |
Description
In Xcode Organizer in Xcode 16 beta we see Firebase is contributing 10 % to our app launch time, which is concerning.
Our custom measurements in production show the P90 for initialising Firebase SDK is 90 ms, P50 is 40 ms. We are using CocoaPods, but Firebase is statically linked.
These methods are responsible:
Might be related to #13223.
Reproducing the issue
Open Xcode Organizer (Xcode 16 beta) Launch reports for any app with significant number of users and see the stats.
Firebase SDK Version
10.22
Xcode Version
16.0
Installation Method
CocoaPods
Firebase Product(s)
Crashlytics, Performance
Targeted Platforms
iOS
Relevant Log Output
No response
If using Swift Package Manager, the project's Package.resolved
Expand
Package.resolved
snippetReplace this line with the contents of your Package.resolved.
If using CocoaPods, the project's Podfile.lock
Expand
Podfile.lock
snippetThe text was updated successfully, but these errors were encountered: