abseil / abseil/abseil-cpp

control bytes field in absl::flat_hash_map do not aligned to 16 bytes

Ouverte
#681 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
Langage dominant
C++
Étoiles
18.1k
Forks
3.2k
Merge moyen
20 h 36 min
PR mergées (30 j)
1

Description

in absl/container/internal/raw_hash_set.h
` using Layout = absl::container_internal::Layout;`
Layout do not align ctrl_t field to 16 bytes like this
` using Layout = absl::container_internal::Layout, slot_type>;`

it is generally fine with default allocator, which aligned to 16 bytes for a large memory region by default. but when using custom allocator (maybe some kind of memory pool), ctrl_t maybe not aligned correctly for simd to get the best performence

Guide de contribution

Ouvrir le guide de contribution

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.