Skip to content

Middle size, 80 000 lines, project but very slow, 5 hours, compilation  #65131

Closed

Description

This code is the MAVLink  protocol handler, and generated by one of the MAVLink specification. It is  C/Rust  mixed project, so to compile it you will need  RustCC  an any  C  compiler.

To check how slow  rustc  is, check this out , and run  cargo test  in the  GroundControl/demo  dir

Exactly this project is compiled with error, cause the borrow checker complains in one place.

But anyway, the problem is that compilation is unacceptably slow.

Description

/GroundControl/lib   generated API

/GroundControl/demo/src/use_case  is generated sample of using generated API

/GroundControl/demo/src/test  the test

I generate variation of this project, with same functionality, in C, C++, C#.... They are the compiled in seconds !

What wrong with my Rust project? How can I speed up compilation?

My PC

Intel I7-7700K

RAM 32G

SSD Samsung 970 PRO

cargo -V

cargo 1.39.0-nightly (ab6fa8908 2019-09-25)

rustc -V

rustc 1.40.0-nightly (22bc9e1 2019-09-30)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: This is a bug.E-needs-testCall for participation: An issue has been fixed and does not reproduce, but no test has been added.I-compiletimeIssue: Problems and improvements with respect to compile times.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions