Using Datadog APM to improve the performance of Homebrew | Datadog
Apr 24, 2018Andrew Robert McBurney

Summary
This post details the use of Datadog APM to identify and resolve performance bottlenecks in the Homebrew package manager, specifically the `brew linkage` command. The investigation focused on the `LinkageChecker::check_dylibs` function. An initial caching mechanism using SQLite3 was implemented, reducing execution time from 11.5 seconds to 182 milliseconds for 106 packages. A second implementation using Ruby's `pstore` was also explored as an alternative without third-party gem dependencies.