reduce includes and some scope

hopefully fixes the windows obj being too large
This commit is contained in:
Green Sky 2024-07-15 16:38:33 +02:00
parent 1efae931d1
commit 3fcfbc11a4
No known key found for this signature in database
6 changed files with 11 additions and 17 deletions

View File

@ -8,7 +8,6 @@
#include <solanaceae/toxcore/tox_key.hpp> #include <solanaceae/toxcore/tox_key.hpp>
#include <array>
#include <vector> #include <vector>
namespace Events { namespace Events {

View File

@ -5,15 +5,6 @@
#include <cstddef> #include <cstddef>
// TODO: refactor, more state tracking in ccai and seperate into flow and congestion algos // TODO: refactor, more state tracking in ccai and seperate into flow and congestion algos
inline bool isSkipSeqID(const std::pair<uint8_t, uint16_t>& a, const std::pair<uint8_t, uint16_t>& b) {
// this is not perfect, would need more ft id based history
if (a.first != b.first) {
return false; // we dont know
} else {
return a.second+1 != b.second;
}
}
struct CCAI { struct CCAI {
public: // config public: // config
using SeqIDType = std::pair<uint8_t, uint16_t>; // tf_id, seq_id using SeqIDType = std::pair<uint8_t, uint16_t>; // tf_id, seq_id

View File

@ -14,6 +14,15 @@
// https://youtu.be/0HRwNSA-JYM // https://youtu.be/0HRwNSA-JYM
static bool isSkipSeqID(const std::pair<uint8_t, uint16_t>& a, const std::pair<uint8_t, uint16_t>& b) {
// this is not perfect, would need more ft id based history
if (a.first != b.first) {
return false; // we dont know
} else {
return a.second+1 != b.second;
}
}
inline constexpr bool PLOTTING = false; inline constexpr bool PLOTTING = false;
LEDBAT::LEDBAT(size_t maximum_segment_data_size) : CCAI(maximum_segment_data_size) { LEDBAT::LEDBAT(size_t maximum_segment_data_size) : CCAI(maximum_segment_data_size) {

View File

@ -6,6 +6,7 @@
#include <solanaceae/toxcore/tox_interface.hpp> #include <solanaceae/toxcore/tox_interface.hpp>
#include <solanaceae/ngc_ext/ngcext.hpp> #include <solanaceae/ngc_ext/ngcext.hpp>
#include "./cca.hpp" #include "./cca.hpp"
#include "./rcv_buf.hpp" #include "./rcv_buf.hpp"

View File

@ -28,10 +28,8 @@
#include "./transfer_stats_systems.hpp" #include "./transfer_stats_systems.hpp"
#include <iostream> #include <iostream>
#include <variant>
#include <filesystem> #include <filesystem>
#include <mutex> #include <thread>
#include <future>
#include <vector> #include <vector>
namespace Message::Components { namespace Message::Components {

View File

@ -6,7 +6,6 @@
#include <solanaceae/contact/contact_model3.hpp> #include <solanaceae/contact/contact_model3.hpp>
#include <solanaceae/message3/registry_message_model.hpp> #include <solanaceae/message3/registry_message_model.hpp>
#include <solanaceae/tox_contacts/tox_contact_model2.hpp> #include <solanaceae/tox_contacts/tox_contact_model2.hpp>
#include <solanaceae/util/bitset.hpp>
#include <solanaceae/ngc_ft1/ngcft1.hpp> #include <solanaceae/ngc_ft1/ngcft1.hpp>
@ -14,11 +13,8 @@
#include "./sending_transfers.hpp" #include "./sending_transfers.hpp"
#include "./receiving_transfers.hpp" #include "./receiving_transfers.hpp"
#include <entt/entity/registry.hpp>
#include <entt/entity/handle.hpp>
#include <entt/container/dense_map.hpp> #include <entt/container/dense_map.hpp>
#include <variant>
#include <random> #include <random>
#include <atomic> #include <atomic>
#include <mutex> #include <mutex>