You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Perhaps an investigation into why this is the case is in order.
I am unsure if this is normal behavior or not I just noticed on my 128core build machine that im spending roughly 20s building mongodb alone and 40s linking a binary in a debug build. (the total build time is 70s). I know that not all of that build time / linking time is cause by this repo and is likely caused by other dependencies in the tree. I am opening this issue here because of the strange build timings output where mongodb is not being compiled in parallel and because of llvm-lines showing bson producing exorbitant amounts of LLVM-IR which I think is the leading contributor to the slow build times I am facing.
The text was updated successfully, but these errors were encountered:
Hey @TroyKomodo, thanks for opening this issue! Slow build times are a known issue both for the driver (RUST-1558) and serde more generally (serde-rs/serde#1146). We don't have the bandwidth to dig into this more right now, but we do have a project slated for later this year for making some improvements to the BSON library, so I will make sure we consider this as part of that work. Feel free to follow the Jira ticket I linked for more updates.
There has not been any recent activity on this ticket, so we are marking it as stale. If we do not hear anything further from you, this issue will be automatically closed in one week.
There has not been any recent activity on this ticket, so we are closing it. Thanks for reaching out and please feel free to file a new issue if you have further questions.
Versions/Environment
Rustc / Os
rustc 1.77.2 (25ef9e3d8 2024-04-09)
Host: x86_64-unknown-linux-gnu
Target: x86_64-unknown-linux-gnu
What versions of the driver and its dependencies are you using?
registry+https://github.com/rust-lang/crates.io-index#[email protected]
registry+https://github.com/rust-lang/crates.io-index#[email protected]
db.version()
)N/A
N/A
Describe the bug
Large codegen slowing down builds causing long linking times.
Running
cargo build --timings
shows mongodb takes roughly 20s of a 70s build and is not executed in parallel.Running
cargo llvm-lines
Shows that bson serde implementation is generating a wildly large amount of LLVM IR.
Perhaps an investigation into why this is the case is in order.
I am unsure if this is normal behavior or not I just noticed on my 128core build machine that im spending roughly 20s building mongodb alone and 40s linking a binary in a debug build. (the total build time is 70s). I know that not all of that build time / linking time is cause by this repo and is likely caused by other dependencies in the tree. I am opening this issue here because of the strange build timings output where mongodb is not being compiled in parallel and because of
llvm-lines
showing bson producing exorbitant amounts of LLVM-IR which I think is the leading contributor to the slow build times I am facing.The text was updated successfully, but these errors were encountered: