braze-swift-sdk icon indicating copy to clipboard operation
braze-swift-sdk copied to clipboard

Braze.__allocating_init(configuration:) blocks main thread for 37.53ms on iPhone 12pro

Open ashender opened this issue 1 year ago • 1 comments

Platform

iOS

Platform Version

iOS 17

Braze SDK Version

6.6.0

Xcode Version

15.2

Computer Processor

Apple (M1)

Repro Rate

100%

Steps To Reproduce

  1. run let braze = Braze(configuration: configuration) in the didFinishLaunching
  2. profile code with instruments

Expected Behavior

should not block or do it async

Actual Incorrect Behavior

blocks

Verbose Logs

No response

Additional Information

Can I run braze init on a background thread? this would solve issue Screenshot 2024-02-29 at 11 03 18 am

ashender avatar Feb 29 '24 00:02 ashender