Skip to content

Conversation

dellaert
Copy link
Member

Trying to cut down on compile times, so

  • moved serialization of Vector and Matrix into separate headers, sparsely included
  • moved various other includes out of base header files
  • fixed issues related to those

@dellaert dellaert requested a review from gchenfc February 17, 2022 04:17
@@ -33,6 +34,7 @@
#include <fstream>
#include <limits>
#include <iostream>
#include <iostream>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

duplicate

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you reviewed everything and you trust me to fix the above, approve??

Copy link
Contributor

@varunagrawal varunagrawal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is this cool tool called include-what-you-use which we should probably leverage.

#include <iostream>
#include <cstdlib>
#include <fstream>
#include <sstream>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pretty sure fstream includes iostream for us, but I like being explicit so yay!

Copy link
Contributor

@varunagrawal varunagrawal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Took a deeper look and LGTM

@dellaert
Copy link
Member Author

There is this cool tool called include-what-you-use which we should probably leverage.

Yeah, tried that at one point. Its not so great for large repos with boost and Eigen. Maybe we should try it again.

@dellaert dellaert merged commit 55ad184 into develop Feb 17, 2022
@dellaert dellaert deleted the fix/headers branch February 17, 2022 06:25
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.

2 participants