Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
ROOT::Internal::VecOps::RVecInlineStorageSize< T > Struct Template Reference

template<typename T>
struct ROOT::Internal::VecOps::RVecInlineStorageSize< T >

The size of the inline storage of an RVec.

Our policy is to allocate at least 8 elements (or more if they all fit into one cacheline) unless the size of the buffer with 8 elements would be over a certain maximum size.

Definition at line 512 of file RVec.hxx.

Static Public Attributes

static constexpr unsigned value
 

Static Private Attributes

static constexpr std::size_t cacheLineSize = 64
 
static constexpr unsigned elementsPerCacheLine = (cacheLineSize - sizeof(SmallVectorBase)) / sizeof(T)
 
static constexpr unsigned maxInlineByteSize = 1024
 

#include <ROOT/RVec.hxx>

Member Data Documentation

◆ cacheLineSize

template<typename T >
constexpr std::size_t ROOT::Internal::VecOps::RVecInlineStorageSize< T >::cacheLineSize = 64
staticconstexprprivate

Definition at line 518 of file RVec.hxx.

◆ elementsPerCacheLine

template<typename T >
constexpr unsigned ROOT::Internal::VecOps::RVecInlineStorageSize< T >::elementsPerCacheLine = (cacheLineSize - sizeof(SmallVectorBase)) / sizeof(T)
staticconstexprprivate

Definition at line 520 of file RVec.hxx.

◆ maxInlineByteSize

template<typename T >
constexpr unsigned ROOT::Internal::VecOps::RVecInlineStorageSize< T >::maxInlineByteSize = 1024
staticconstexprprivate

Definition at line 521 of file RVec.hxx.

◆ value

template<typename T >
constexpr unsigned ROOT::Internal::VecOps::RVecInlineStorageSize< T >::value
staticconstexpr
Initial value:
=
elementsPerCacheLine >= 8 ? elementsPerCacheLine : (sizeof(T) * 8 > maxInlineByteSize ? 0 : 8)
static constexpr unsigned maxInlineByteSize
Definition RVec.hxx:521
static constexpr unsigned elementsPerCacheLine
Definition RVec.hxx:520

Definition at line 524 of file RVec.hxx.

Collaboration diagram for ROOT::Internal::VecOps::RVecInlineStorageSize< T >:
[legend]

The documentation for this struct was generated from the following file: