fleet icon indicating copy to clipboard operation
fleet copied to clipboard

`fleet` builds slower than `cargo`

Open buf1024 opened this issue 2 years ago • 4 comments

test project druid.

it's slower than cargo.

most of time after clean, cargo cause 38s the compile,

but fleet causes 45s, and sometimes more than 2min.

buf1024 avatar Apr 24 '22 00:04 buf1024

Hey @buf1024, a few questions,

  • Your OS?
  • Are you using WSL?
  • What build/run command are you using?
  • What are the contents of the file .cargo/config.toml?
  • and your fleet version (fleet --version)
  • Github link for the project

VarunPotti avatar Apr 24 '22 03:04 VarunPotti

Seconded - Same on my project

  • OS: Linux, Archlinux distribution
  • Not using WSL
  • fleet build and cargo build
  • .cargo/config.toml: After running fleet, but empty otherwise
[build]
rustc-wrapper = '/home/arthur/.cargo/bin/sccache'
[target.x86_64-unknown-linux-gnu]
rustflags = [
    '-Clink-arg=-fuse-ld=lld',
    '-Zshare-generics=y',
]
linker = '/usr/bin/clang'

[target.x86_64-pc-windows-msvc]
rustflags = ['-Zshare-generics=y']
linker = 'rust-lld.exe'

[target.x86_64-apple-darwin]
rustflags = [
    '-C',
    'link-arg=-fuse-ld=/usr/local/bin/zld',
    '-Zshare-generics=y',
    '-Csplit-debuginfo=unpacked',
]
[profile.dev]
opt-level = 0
debug = 2
incremental = true
codegen-units = 512

[profile.release]
opt-level = 3
debug = 0
incremental = false
codegen-units = 256
split-debuginfo = '...'
  • fleet --version: 0.0.8
  • github link to the project: https://github.com/jinko-core/jinko

CohenArthur avatar Apr 24 '22 19:04 CohenArthur

@CohenArthur

Appreciate the detailed response, we'll debug this ASAP.

suptejas avatar Apr 25 '22 12:04 suptejas

On the second run of using Fleet, I noticed a 4 second improvement, which isn't enough really for this to be used on a wider scale IMO.

Milo123459 avatar Apr 25 '22 19:04 Milo123459