Skip to content

allocscc takes very long when statically linking against big libraries #184

@mbyzhang

Description

@mbyzhang

allocscc takes very long (specifically alloctypes, allocsites, dwarftypes, extrasyms, etc.) when statically linking against big libraries (like openssl). This happens in libwebsocket configuration-time when the configuration script tries to detect a dozen of features in openssl (e.g. testing whether a function exists in openssl by compiling a small test C program that statically-links against openssl). As a result, configuring libwebsocket takes a couple of hours (which would normally take a minute or two).

It seems like on each feature test, the entire openssl library is redundantly processed by alloctypes, dwarftypes, etc. Is there a way to somehow cache the result to speed up?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions