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

[bugfix] fix Make.dep result was Overwritten when there are too many files #2506

Merged
merged 2 commits into from
Aug 19, 2024

Conversation

xuxin930
Copy link
Contributor

Summary

  1. overwritten issue
    when there are a lot of SRCS files and they are split into many batches,
    the Make.dep file will be overwritten, causing incremental compilation exceptions.

  2. incremental compile speed issue
    when incremental compilation is performed, the contents of the Make.dep file will be repeated multiple times (because the incremental SRC changes will cause .depend to be executed).
    this will cause additional overhead when Make.dep is parsed by GNU Make.
    In the case I tested, Make.dep was incrementally compiled to more than 1G, slowing down the incremental compilation speed.

Impact

Testing

CI

according to the dependency of the .depend target, Make.dep is always generated additionally when src is modified.
this will cause the Make.dep file to gradually increase in size during each incremental compilation, causing the Makefile to take longer to load.

Signed-off-by: xuxin19 <[email protected]>
@acassis acassis merged commit cfa6c5d into apache:master Aug 19, 2024
27 checks passed
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

Successfully merging this pull request may close these issues.

3 participants