alphaville / optimization-engine

Nonconvex embedded optimization: code generation for fast real-time optimization + ROS support
https://alphaville.github.io/optimization-engine/
Other
499 stars 53 forks source link

Compilation speed using Python build interfaces #258

Closed ghost closed 2 years ago

ghost commented 2 years ago

Hi,

The building when using with python interfaces seems slow even when with debug mode. Do the compiler rebuild every time the build() is called? Is there an incremental compile way?

alphaville commented 2 years ago

Hi @xeonz1. The slow compilation speed has to do with how the Rust compiler works, not with the Python interface. The compiler doesn't rebuild the code every time, though, so after the first time you compile it should be faster (unless you are using .with_rebuild()).