-
-
Notifications
You must be signed in to change notification settings - Fork 336
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
App Launch Time Slow:sentrycrashdl_getBinarylmageForHeader #4618
Comments
Thanks for reporting this, @kingnight. It would be helpful for us to know how many binary images you roughly have in your app. Could you maybe set a breakpoint here or add a log message and tell us how many images are in the cache? sentry-cocoa/Sources/Sentry/SentryBinaryImageCache.m Lines 160 to 165 in fce741e
Ideas on how to fix this:
|
@philipphofmann how many binary images : 1072
in debug mode |
@philipphofmann, I can only see two immediately obvious optimization paths.
Independent of these, 100ms still sounds like a lot for simple code processing 1000+ modules (~100us/module). I guess |
Thanks for the update, @kingnight.
Yes, isCrash is always false when feeding the cache. @supervacuus, do you have any clue why it could be so slow? |
After talking to @supervacuus we think it'd be best if we found a way to reproduce and profile this. @kingnight would you be able to provide a minimum reproducible example? |
@kahest it's difficult to provide example ,but I set breakpoint in most modules in another part should exclude system private frameworks? |
We could create a sample app with loads of dependencies or use an existing open-source app such as Firefox-iOS and try to reproduce the problem. |
Platform
iOS
Environment
Production
Installed
Manually
Version
8.37.0
Xcode Version
15.1
Did it work on previous versions?
No response
Steps to Reproduce
Info from Xcode Organizer:
Expected Result
reduce app launch time
Actual Result
23% slow launch time
Are you willing to submit a PR?
No response
The text was updated successfully, but these errors were encountered: