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

Support for watching/incremental rebuild #13

Open
mfine15 opened this issue Jul 27, 2018 · 1 comment
Open

Support for watching/incremental rebuild #13

mfine15 opened this issue Jul 27, 2018 · 1 comment

Comments

@mfine15
Copy link

mfine15 commented Jul 27, 2018

I'm using compdb on a somewhat large project: ~16k entries in the compilation db, most of which have dozens of flags. Because of this, generating a compilation database with header files takes ~30 minutes.

I've been working on speeding this up, which I'll try to submit a pull request for soon, but the biggest speedup would come from not having to regenerate the entire database whenever a single entry changes. If compdb could keep the database in memory and only have to generate header commands for the changed files, that would drastically speed up the workflow after the first build.

I understand that this may require a good bit of work, and I'm happy to look into making the changes myself. I wanted to raise this issue to see if anyone had any insight on the best way to accomplish this, as well as determine if this would be a useful feature to be merged back into the upstream project?

Really appreciate your work on compdb!

@hongwen000
Copy link

I'm appreciated if you would like to try my modified version [](https://github.com/hongwen000/compiledb-ninja-refined, which addressed) the performance issue. ~42K processed in 14 seconds.

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