Slightly speed up unordered iteration of FlowStatMap

This commit is contained in:
Jonathan G Rennison
2024-01-16 23:15:56 +00:00
parent 4458d3b61c
commit 81c2c4a881
3 changed files with 9 additions and 3 deletions

View File

@@ -22,6 +22,7 @@
#include "bitmap_type.h"
#include "core/alloc_type.hpp"
#include "core/endian_type.hpp"
#include "core/span_type.hpp"
#include "strings_type.h"
#include <map>
#include <vector>
@@ -504,6 +505,11 @@ public:
}
void SortStorage();
span<const FlowStat> IterateUnordered() const
{
return span<const FlowStat>(this->flows_storage.data(), this->flows_storage.size());
}
};
struct GoodsEntryData : ZeroedMemoryAllocator {