tikv/tikv

Align key memory location

Open

#3,486 创建于 2018年8月20日

在 GitHub 查看
 (1 评论) (0 反应) (0 负责人)Rust (15,922 star) (2,189 fork)batch import
component/performancedifficulty/mediumhelp wanted

描述

Feature Request

After encoding, our keys are 9*N in length (or 9*N+8 if it has timestamp suffix).

when comparing key equality, or decoding key timestamp, we access its last 8*N part, which is not memory aligned in most cases. Make keys ends with a memory aligned location could improve performance.

贡献者指南