Improve C++ header includes to improve build time

Recent changes ended up including all the Broker headers more places
than necessary, causing compile time to increase 2x.
This commit is contained in:
Jon Siwek 2019-06-20 19:50:23 -07:00
parent aefd9322fd
commit 8f19bbe589
16 changed files with 49 additions and 10 deletions

View file

@ -6,7 +6,8 @@
#include <iterator>
#include <vector>
#include <broker/Data.h>
#include <broker/data.hh>
#include <broker/expected.hh>
namespace probabilistic {

View file

@ -4,6 +4,8 @@
#include <cmath>
#include <limits>
#include <broker/error.hh>
#include "BloomFilter.h"
#include "CounterVector.h"

View file

@ -5,7 +5,8 @@
#include <vector>
#include <broker/Data.h>
#include <broker/data.hh>
#include <broker/expected.hh>
#include "BitVector.h"
#include "Hasher.h"

View file

@ -4,7 +4,11 @@
#define PROBABILISTIC_CARDINALITYCOUNTER_H
#include <stdint.h>
#include <OpaqueVal.h>
#include <memory>
#include <vector>
#include <broker/data.hh>
#include <broker/expected.hh>
namespace probabilistic {

View file

@ -5,6 +5,9 @@
#include <cassert>
#include <limits>
#include "BitVector.h"
#include "util.h"
#include <broker/error.hh>
using namespace probabilistic;

View file

@ -6,7 +6,8 @@
#include <cstddef>
#include <cstdint>
#include <broker/Data.h>
#include <broker/data.hh>
#include <broker/expected.hh>
namespace probabilistic {

View file

@ -3,7 +3,10 @@
#ifndef PROBABILISTIC_HASHER_H
#define PROBABILISTIC_HASHER_H
#include <broker/Data.h>
#include <broker/data.hh>
#include <broker/expected.hh>
#include <memory>
#include "Hash.h"

View file

@ -1,5 +1,7 @@
// See the file "COPYING" in the main distribution directory for copyright.
#include <broker/error.hh>
#include "broker/Data.h"
#include "probabilistic/Topk.h"
#include "CompHash.h"