Remove unused headers from gsl/pointers#1153
Conversation
|
I just see that |
forward is already declared in utility, no need to include algorithm which is relativaly heavy hash is already declared in memory, no need to bring brand-new header system_error for hash only
7018630 to
138ac72
Compare
|
hi! Is there any chances too see a progress here? Can it get merged to the main? it seems useful changes in my opinion. |
|
@knst There appears to be a problem running checks on this PR. Can you push a dummy change as shown below to retrigger the tests.
|
138ac72 to
2445d84
Compare
I force pushed a branch, seems as I need approval again |
|
Hey all, this has been approved for a while? CI failures seem unrelated? Please advise, it'd be nice to get some movement again |
|
@knst Thanks for the contribution! Apologies it took so long to get the CI issues sorted out. |
|
@carsonRadtke thanks a lot for getting it merged! |
forwardis already declared in utility, no need to include<algorithm>which is relatively heavyhashis already declared in memory, no need to bring brand-new header<system_error>for hash only.On my machine with my customized fork of GSL it improves a compilation time of gsl/pointers drastically.
See benchmark (best time over 5 runs):
Considering using
gsl/pointersall over codebase it speeds up compilation time of any project that uses gsl/pointers.