Skip to content

do not leave empty dependencies #1000

@perazz

Description

@perazz

Motivation

fpm allocates the dependency array with additional space, that is left unused after the dependency tree is completed.

Because tree serialization creates an exact copy of the memory, the dependency toml/json may include several empty dependencies.

Specification

Always ensure that the dependency array has size(tree%deps) == tree%ndep after the dependency tree is built.
This will achieve no leftover empty dependencies with basically no performance penalty.

Prior Art

No response

Additional Information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    specificationIssue regarding fpm manifest and model

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions