avhz / RustQuant

Rust library for quantitative finance.

Home Page:https://docs.rs/RustQuant

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Decrease compile time.

avhz opened this issue · comments

commented

Compile time increased quite substantially after adding Polars as a dependency.
Should look into reducing the compile time a bit if possible.

commented

Have made polars crate part of an opt-in feature.

commented

The way I have it currently reduces the number of dependencies compiled from 400+ to around 270-280.

Are you saying we should remove optional = true and change polars to a default feature ? This would increase the dependencies compiled to 400+ again wouldn't it ?

Ohh My bad we can keep it as true and data = [] ( empty) , the data feature is disabled by default, meaning Polars will not be included in the compilation process unless explicitly enabled using the --features data flag or specifying features = ["data"] in the Cargo.toml file.

commented

But polars is already not included unless data is specified as a feature.

Why do you want to have data = [] instead of data = ["dep:polars"] ?