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
When I'm running a local testnet using the command from README file:
cargo run --bin safenode-manager --features local-discovery -- run --build
The safenode-manager binary is built in debug mode, and then faucet is built in release mode. This takes twice as much time, and twice the storage space, because most libraries are shared among subprojects. I have both release and debug folders in safe_network/target.
The text was updated successfully, but these errors were encountered:
However, I can't really tell whether you'd like it to build the binaries in release or debug mode, because you are referencing a problem with both space and time. You can't have both. Either we build in debug mode and we use more space, or we build in release mode and it takes longer. Which do you prefer for the local network?
Perhaps I didn't make myself clear. By default, node_manager is built in dev mode, and the binaries it builds itself, like safenode or faucet, are built with release mode. It makes all dependencies be built two times - once for release and once for dev. I see two solutions:
Add --release option to cargo commands in README
Make node_manager build other binaries in dev mode.
I prefer solution no.1, because release saves much more space, and takes only a little longer.
When I'm running a local testnet using the command from README file:
The
safenode-manager
binary is built in debug mode, and thenfaucet
is built in release mode. This takes twice as much time, and twice the storage space, because most libraries are shared among subprojects. I have both release and debug folders insafe_network/target
.The text was updated successfully, but these errors were encountered: