Skip to content

swift-async-algorithms dependency bloat (binary size optimization) #210

@RandomHashTags

Description

@RandomHashTags

Building services with this library is pretty easy and lightweight. However, diving deeper into optimizations and binary sizes using this library shows that the two uses of AsyncAlgorithms bloats the binary with swift-async-algorithms symbols, not to mention a single symbol (shutdownGracefully) in this lightweight library uses 17k bytes (which is a lot for a single symbol; more than any single swift-syntax symbol for context).

Having a slightly smaller binary size might not make that much difference in the end, but I've never used swift-async-algorithms in any of my projects directly. Would it be possible to replace the usage of swift-async-algorithms (and excessively larger symbols from this library) with a more lightweight solution in terms of binary size?

Relevant link: https://forums.swift.org/t/81270

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions