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

'--append' kills my build performance #532

Open
Spongman opened this issue Jun 24, 2023 · 1 comment
Open

'--append' kills my build performance #532

Spongman opened this issue Jun 24, 2023 · 1 comment

Comments

@Spongman
Copy link
Contributor

I'm using bear --append and it's killing my build even when no compilation actually occurs (the project is already fully build). it works fine, it's just really slow.

without bear:

$ time make -sj7

real    0m3.750s
user    0m6.618s
sys     0m0.882s

with bear:

$ time ~/Bear/build/stage/bin/bear --append -- make -sj7

real    4m6.312s
user    0m32.840s
sys     0m16.986s

the project is a tree of makefiles running various shell/perl commands. again, no actual compilation is done here because the tree is fully built.

my compile_commands.events.json file is 8MB.

Environment:

  • OS name: Linux

  • OS version: CentOS Linux release 7.9.2009 (Core)

  • OS architecture: x86_64

  • Bear version: 3.1.2

  • Bear install method: built from source

  • What build tools this project is using? custom makefiles

  • What architecture you are trying to compile for? same: x86_64

@rizsotto
Copy link
Owner

Thanks for the report. Will try to reproduce it.

In the meanwhile, if there is no secret in there, could you run Bear with verbose flag? That would already display some timing information to start with.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants