Company
Date Published
Author
Yassir Ramdani, Austin Lai
Word count
2981
Language
English
Hacker News points
None

Summary

At Datadog, we've been using SwiftUI since day one, and have adopted it for various purposes such as prototyping, building internal tools, small features, and full products. We introduced APM Services with rich data visualization experience to the mobile application, and implemented DogGraphs, an internal graphing library, to bring Datadog's data visualization to iOS using native technologies like Swift and SwiftUI. To optimize performance, we identified performance bottlenecks in early phases of DogGraphs development, fixed them, and measured the results. We made structural changes to the shared coordinate system, batching, splitting views into smaller components, removing time-consuming processes from the view body, eliminating dependencies not needed by the view, and reducing `@Published` properties. These techniques have improved the rendering pipeline, enabling a top-tier user experience, and have been integrated into several products across Datadog's mobile application.