abseil / abseil/abseil-cpp

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

未關閉
#681 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
主要語言
C++
星號
18.1k
分支
3.2k
平均合併
20 小時 36 分鐘
30 天內合併 PR
1

描述

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

貢獻指南

開啟貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。