Story Details

  • Why some Mac apps launch slowly: A follow-up

    Posted: 2025-05-01 15:25:36

    This blog post delves deeper into the slow launch times of some Mac applications, particularly those built with Electron. It revisits and expands upon a previous investigation, pinpointing macOS's handling of code signatures as a significant bottleneck. Specifically, the codesign utility, used to verify the integrity of app binaries, appears to be inefficient when dealing with large numbers of embedded frameworks, a common characteristic of Electron apps. While the developer has reported this issue to Apple, the post offers potential workarounds, like restructuring apps to have fewer embedded frameworks or leveraging notarization. Ultimately, the author emphasizes the significant performance impact this issue can have and encourages other developers experiencing similar problems to report them to Apple.

    Summary of Comments ( 1 )
    https://news.ycombinator.com/item?id=43858970

    The Hacker News comments discuss the linked article about slow Mac app launches, focusing on the impact of poorly optimized or excessive use of frameworks and plugins. Several commenters agree with the author's points, sharing their own experiences with sluggish applications and pointing fingers at Electron apps in particular. Some discuss the tradeoffs developers face between speed and cross-platform compatibility. The overhead of loading numerous dynamic libraries and frameworks is highlighted as a key culprit, with one commenter suggesting a tool to visualize the dependency tree could be beneficial. Others mention Apple's role in this issue, citing the increasing complexity of macOS and the lack of clear developer guidelines for optimization. A few comments dispute the article's claims, arguing that modern hardware should be capable of handling these loads and suggesting other potential bottlenecks like storage speed or network issues.