Skip to content

Commit

Permalink
Address review feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
Stefanos Kornilios Mitsis Poiitidis committed Jan 22, 2021
1 parent 00ca576 commit 3030517
Showing 1 changed file with 7 additions and 1 deletion.
Expand Up @@ -16,7 +16,13 @@ namespace {

constexpr uint64_t INVALID_REGCLASS = (((uint64_t)INVALID_CLASS) << 32) | (INVALID_REG);

template<unsigned _Size = 6, typename T = uint32_t>
// BucketList is an optimized container, it includes an inline array of Size
// and can overflow to a linked list of further buckets
//
// To optimize for best performance, Size should be big enough to allocate one or two
// buckets for the typical case
// Picking a Size so sizeof(Bucket<...>) is a power of two is also a small win
template<unsigned _Size, typename T = uint32_t>
struct BucketList {
static constexpr const unsigned Size = _Size;

Expand Down

0 comments on commit 3030517

Please sign in to comment.