tikv/tikv

Align key memory location

Open

#3486 opened on Aug 20, 2018

View on GitHub
 (1 comment) (0 reactions) (0 assignees)Rust (15,922 stars) (2,189 forks)batch import
component/performancedifficulty/mediumhelp wanted

Description

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.

Contributor guide