Skip to content

Very long build times in release #115

@zeroflaw

Description

@zeroflaw

I've recently update to version 1.0.0 and found tinyvec as the cause of some extremely long build times (Release only) (0.4.1 = 10 seconds, 1.0.0 = 1 hours)

seems to have something to do with code using ArrayVec the larger the ArrayVec the longer the build time. It seems to also depend on the size of the object as well. I can't post all the code here because it very large, I'll try cut out a minimal example to demonstrate.
MAX_POSITIONS = 200 pub fn new() -> Self { PositionUpdateArray(ArrayVec::<[PositionUpdate; MAX_POSITIONS]>::from_array_len( [PositionUpdate::DEFAULT; MAX_POSITIONS], 0, )) }

Other useful information:
MacOSX
rustc 1.48.0-nightly (397b390cc 2020-08-27)
Debug mode is unaffected, only release mode

Metadata

Metadata

Assignees

No one assigned

    Labels

    Help WantedI need outside help for this to happen.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions