mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-28 08:49:46 +00:00
These optimizations are surprisingly impactful. -setNeedsDisplay being called for every node triggered cancelAsyncDisplay, locking, and memory management overhead that is completely avoidable because Core Animation triggers first display automatically. The mutable array copy optimizations reduced this key cost by over 10x, from 52ms to 5ms on an iPad Air 2 / A8X with a real-world test case.
2.3 KiB
2.3 KiB