mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00
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:
parent
aefd9322fd
commit
8f19bbe589
16 changed files with 49 additions and 10 deletions
|
@ -6,6 +6,8 @@
|
||||||
#include "probabilistic/BloomFilter.h"
|
#include "probabilistic/BloomFilter.h"
|
||||||
#include "probabilistic/CardinalityCounter.h"
|
#include "probabilistic/CardinalityCounter.h"
|
||||||
|
|
||||||
|
#include <broker/error.hh>
|
||||||
|
|
||||||
// Helper to retrieve a broker value out of a broker::vector at a specified
|
// Helper to retrieve a broker value out of a broker::vector at a specified
|
||||||
// index, and casted to the expected destination type.
|
// index, and casted to the expected destination type.
|
||||||
template<typename S, typename V, typename D>
|
template<typename S, typename V, typename D>
|
||||||
|
|
|
@ -3,6 +3,9 @@
|
||||||
#ifndef OPAQUEVAL_H
|
#ifndef OPAQUEVAL_H
|
||||||
#define OPAQUEVAL_H
|
#define OPAQUEVAL_H
|
||||||
|
|
||||||
|
#include <broker/data.hh>
|
||||||
|
#include <broker/expected.hh>
|
||||||
|
|
||||||
#include "RandTest.h"
|
#include "RandTest.h"
|
||||||
#include "Val.h"
|
#include "Val.h"
|
||||||
#include "digest.h"
|
#include "digest.h"
|
||||||
|
|
|
@ -8,8 +8,6 @@
|
||||||
#include <array>
|
#include <array>
|
||||||
#include <unordered_map>
|
#include <unordered_map>
|
||||||
|
|
||||||
#include <broker/broker.hh>
|
|
||||||
|
|
||||||
#include "net_util.h"
|
#include "net_util.h"
|
||||||
#include "Type.h"
|
#include "Type.h"
|
||||||
#include "Dict.h"
|
#include "Dict.h"
|
||||||
|
|
|
@ -1,6 +1,9 @@
|
||||||
#include "Data.h"
|
#include "Data.h"
|
||||||
#include "File.h"
|
#include "File.h"
|
||||||
#include "broker/data.bif.h"
|
#include "broker/data.bif.h"
|
||||||
|
|
||||||
|
#include <broker/error.hh>
|
||||||
|
|
||||||
#include <caf/stream_serializer.hpp>
|
#include <caf/stream_serializer.hpp>
|
||||||
#include <caf/stream_deserializer.hpp>
|
#include <caf/stream_deserializer.hpp>
|
||||||
#include <caf/streambuf.hpp>
|
#include <caf/streambuf.hpp>
|
||||||
|
|
|
@ -1,7 +1,9 @@
|
||||||
#ifndef BRO_COMM_DATA_H
|
#ifndef BRO_COMM_DATA_H
|
||||||
#define BRO_COMM_DATA_H
|
#define BRO_COMM_DATA_H
|
||||||
|
|
||||||
#include <broker/broker.hh>
|
#include <broker/data.hh>
|
||||||
|
#include <broker/expected.hh>
|
||||||
|
|
||||||
#include "OpaqueVal.h"
|
#include "OpaqueVal.h"
|
||||||
#include "Reporter.h"
|
#include "Reporter.h"
|
||||||
#include "Frame.h"
|
#include "Frame.h"
|
||||||
|
|
|
@ -1,7 +1,17 @@
|
||||||
#ifndef BRO_COMM_MANAGER_H
|
#ifndef BRO_COMM_MANAGER_H
|
||||||
#define BRO_COMM_MANAGER_H
|
#define BRO_COMM_MANAGER_H
|
||||||
|
|
||||||
#include <broker/broker.hh>
|
#include <broker/topic.hh>
|
||||||
|
#include <broker/data.hh>
|
||||||
|
#include <broker/store.hh>
|
||||||
|
#include <broker/status.hh>
|
||||||
|
#include <broker/error.hh>
|
||||||
|
#include <broker/endpoint.hh>
|
||||||
|
#include <broker/endpoint_info.hh>
|
||||||
|
#include <broker/peer_info.hh>
|
||||||
|
#include <broker/backend.hh>
|
||||||
|
#include <broker/backend_options.hh>
|
||||||
|
#include <broker/detail/hash.hh>
|
||||||
#include <broker/zeek.hh>
|
#include <broker/zeek.hh>
|
||||||
#include <memory>
|
#include <memory>
|
||||||
#include <string>
|
#include <string>
|
||||||
|
|
|
@ -8,7 +8,9 @@
|
||||||
#include "OpaqueVal.h"
|
#include "OpaqueVal.h"
|
||||||
#include "Trigger.h"
|
#include "Trigger.h"
|
||||||
|
|
||||||
#include <broker/broker.hh>
|
#include <broker/store.hh>
|
||||||
|
#include <broker/backend.hh>
|
||||||
|
#include <broker/backend_options.hh>
|
||||||
|
|
||||||
namespace bro_broker {
|
namespace bro_broker {
|
||||||
|
|
||||||
|
|
|
@ -10,6 +10,8 @@
|
||||||
|
|
||||||
#include "file_analysis/Manager.h"
|
#include "file_analysis/Manager.h"
|
||||||
|
|
||||||
|
#include <broker/error.hh>
|
||||||
|
|
||||||
#include <openssl/x509.h>
|
#include <openssl/x509.h>
|
||||||
#include <openssl/x509v3.h>
|
#include <openssl/x509v3.h>
|
||||||
#include <openssl/asn1.h>
|
#include <openssl/asn1.h>
|
||||||
|
|
|
@ -6,7 +6,8 @@
|
||||||
#include <iterator>
|
#include <iterator>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
#include <broker/Data.h>
|
#include <broker/data.hh>
|
||||||
|
#include <broker/expected.hh>
|
||||||
|
|
||||||
namespace probabilistic {
|
namespace probabilistic {
|
||||||
|
|
||||||
|
|
|
@ -4,6 +4,8 @@
|
||||||
#include <cmath>
|
#include <cmath>
|
||||||
#include <limits>
|
#include <limits>
|
||||||
|
|
||||||
|
#include <broker/error.hh>
|
||||||
|
|
||||||
#include "BloomFilter.h"
|
#include "BloomFilter.h"
|
||||||
|
|
||||||
#include "CounterVector.h"
|
#include "CounterVector.h"
|
||||||
|
|
|
@ -5,7 +5,8 @@
|
||||||
|
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
#include <broker/Data.h>
|
#include <broker/data.hh>
|
||||||
|
#include <broker/expected.hh>
|
||||||
|
|
||||||
#include "BitVector.h"
|
#include "BitVector.h"
|
||||||
#include "Hasher.h"
|
#include "Hasher.h"
|
||||||
|
|
|
@ -4,7 +4,11 @@
|
||||||
#define PROBABILISTIC_CARDINALITYCOUNTER_H
|
#define PROBABILISTIC_CARDINALITYCOUNTER_H
|
||||||
|
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include <OpaqueVal.h>
|
#include <memory>
|
||||||
|
#include <vector>
|
||||||
|
|
||||||
|
#include <broker/data.hh>
|
||||||
|
#include <broker/expected.hh>
|
||||||
|
|
||||||
namespace probabilistic {
|
namespace probabilistic {
|
||||||
|
|
||||||
|
|
|
@ -5,6 +5,9 @@
|
||||||
#include <cassert>
|
#include <cassert>
|
||||||
#include <limits>
|
#include <limits>
|
||||||
#include "BitVector.h"
|
#include "BitVector.h"
|
||||||
|
#include "util.h"
|
||||||
|
|
||||||
|
#include <broker/error.hh>
|
||||||
|
|
||||||
using namespace probabilistic;
|
using namespace probabilistic;
|
||||||
|
|
||||||
|
|
|
@ -6,7 +6,8 @@
|
||||||
#include <cstddef>
|
#include <cstddef>
|
||||||
#include <cstdint>
|
#include <cstdint>
|
||||||
|
|
||||||
#include <broker/Data.h>
|
#include <broker/data.hh>
|
||||||
|
#include <broker/expected.hh>
|
||||||
|
|
||||||
namespace probabilistic {
|
namespace probabilistic {
|
||||||
|
|
||||||
|
|
|
@ -3,7 +3,10 @@
|
||||||
#ifndef PROBABILISTIC_HASHER_H
|
#ifndef PROBABILISTIC_HASHER_H
|
||||||
#define PROBABILISTIC_HASHER_H
|
#define PROBABILISTIC_HASHER_H
|
||||||
|
|
||||||
#include <broker/Data.h>
|
#include <broker/data.hh>
|
||||||
|
#include <broker/expected.hh>
|
||||||
|
|
||||||
|
#include <memory>
|
||||||
|
|
||||||
#include "Hash.h"
|
#include "Hash.h"
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,7 @@
|
||||||
// See the file "COPYING" in the main distribution directory for copyright.
|
// See the file "COPYING" in the main distribution directory for copyright.
|
||||||
|
|
||||||
|
#include <broker/error.hh>
|
||||||
|
|
||||||
#include "broker/Data.h"
|
#include "broker/Data.h"
|
||||||
#include "probabilistic/Topk.h"
|
#include "probabilistic/Topk.h"
|
||||||
#include "CompHash.h"
|
#include "CompHash.h"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue