-
-
Notifications
You must be signed in to change notification settings - Fork 234
engine's headers review #532
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
Conversation
removed unnecessary declarations in engine headers results in 9% decreasing of compilation time and roughly 17% decreasing of dependencies among sources
removed unnecessary declarations in engine headers results in 9% decreasing of compilation time and roughly 17% decreasing of dependencies among sources
b8bcb31 to
2172a3c
Compare
grafikrobot
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I really don't want to duplicate declarations in multiple places. I will trade slower compiles to avoid the duplication. Especially as the duplication makes it harder to refactor. I'm good for other header cleanups though.
|
Continuing to think about this.. Maybe we can have a single jam_fwd.h header that has the various engine declarations. I think I can live with having the types declared two times (as opposed to declared in a bunch of places). |
|
The reason for this work is not to seek faster compilation, I solved that with a Makefile; the reason is that if you want to clean up the sources you have to start by doing it in the headers. |
How so? |
|
During development it is common to make small changes, if every time I launch But I don't think that's the point here. Your |
|
An FYI regarding using make.. For usual b2 development you can build b2 with b2 to get incremental building and all the additional build variants, like sanitized build. The bootstrap is solely for regular users. For example you can: Which will give you a debug b2, that you can run in a debugger also. And you can run the regular tests with it. Although most times I just install a stable b2 to my home dir (i.e. |
|
Continue on #540 with the requested changes? |
removed unnecessary declarations in engine headers results in 9% decreasing of compilation time and
roughly 17% decreasing of dependencies among sources.
Now you can think about cleaning up the individual sources from all unnecessary includes, and this should also bring several benefits.