securing / IOSSecuritySuite

iOS platform security & anti-tampering Swift library
https://www.securing.biz/
Other
2.27k stars 272 forks source link

Improve performance of `checkDYLD` method #103

Closed mkj-is closed 8 months ago

mkj-is commented 9 months ago

Check DYLD method is executed on the main thread. It is taking around 70 ms, which can result in hangs, hitches or increase in app launch, depending on when the method is called.

The comparison and string initialization improves the performance more than 50 %. In my measurement it was down to 28 ms from 67 ms.

Configuration used to collect the numbers:

r3ggi commented 8 months ago

Hey Hey!

Sorry for the delay, thank you very much for your PR!