Datadog

How we brought Datadog’s data visualization to iOS: A focus on performance | Datadog

Apr 18, 2024Yassir Ramdani, Austin Lai
How we brought Datadog’s data visualization to iOS: A focus on performance | Datadog
SummaryAI, from the source post

This post details the performance optimization efforts for Datadog's internal iOS graphing library, DogGraphs. It explains how the team used Xcode Instruments and the private _printChanges() method to identify and address SwiftUI view body evaluation bottlenecks. Specific optimizations included moving expensive logic out of View bodies and analyzing time profiler data to optimize slow function calls during key interaction events like initial rendering, window changes, and user interactions.