abseil / abseil/abseil-cpp

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

Abierto
#681 0 comentarios 0 reacciones 0 asignados Ver en GitHub
Lenguaje dominante
C++
Estrellas
18.1k
Forks
3.2k
Merge medio
20 h 36 min
PR fusionados (30 d)
1

Descripción

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

Guía de contribución

Abrir la guía de contribución

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.