ios The time it takes to call a function in a for loop is gradually reduced
巴扎黑
巴扎黑 2017-05-17 10:06:20
0
1
628

The following is the code and time-consuming screenshot

I call a C language function in a for loop. It takes a long time at first, then it decreases with each call, and finally stabilizes within a small range.
How to explain this situation? Is it optimization of the iOS platform or something else?
Thank you very much~

巴扎黑
巴扎黑

reply all(1)
我想大声告诉你

It should be related to method caching. You can understand this process from objc_msgSendmessage distribution.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template