mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-25 13:33:02 +08:00
Move to StackVec for timestamp packet container.
Do not use std::vector in hot path. Signed-off-by: Michal Mrozek <michal.mrozek@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
30ea8ea48e
commit
721c59d3d5
@@ -87,7 +87,7 @@ class TimestampPacketContainer : public NonCopyableClass {
|
||||
TimestampPacketContainer &operator=(TimestampPacketContainer &&) = default;
|
||||
MOCKABLE_VIRTUAL ~TimestampPacketContainer();
|
||||
|
||||
const std::vector<TagNodeBase *> &peekNodes() const { return timestampPacketNodes; }
|
||||
const StackVec<TagNodeBase *, 32u> &peekNodes() const { return timestampPacketNodes; }
|
||||
void add(TagNodeBase *timestampPacketNode);
|
||||
void swapNodes(TimestampPacketContainer ×tampPacketContainer);
|
||||
void assignAndIncrementNodesRefCounts(const TimestampPacketContainer &inputTimestampPacketContainer);
|
||||
@@ -95,7 +95,7 @@ class TimestampPacketContainer : public NonCopyableClass {
|
||||
void moveNodesToNewContainer(TimestampPacketContainer ×tampPacketContainer);
|
||||
|
||||
protected:
|
||||
std::vector<TagNodeBase *> timestampPacketNodes;
|
||||
StackVec<TagNodeBase *, 32u> timestampPacketNodes;
|
||||
};
|
||||
|
||||
struct TimestampPacketDependencies : public NonCopyableClass {
|
||||
|
||||
Reference in New Issue
Block a user