Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fleet builds slower than cargo #21

Open
buf1024 opened this issue Apr 24, 2022 · 4 comments
Open

fleet builds slower than cargo #21

buf1024 opened this issue Apr 24, 2022 · 4 comments
Labels
bug Something isn't working

Comments

@buf1024
Copy link

buf1024 commented Apr 24, 2022

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 buf1024 added the bug Something isn't working label Apr 24, 2022
@VarunPotti
Copy link
Contributor

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

@suptejas suptejas changed the title most of time is SLOWER than cargo fleet builds slower than cargo Apr 24, 2022
@CohenArthur
Copy link

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 = '...'

@suptejas
Copy link
Member

@CohenArthur

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

@Milo123459
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants