-
Notifications
You must be signed in to change notification settings - Fork 716
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MyRocks: merge the key packing buffer allocation, annotate m_pack_buf…
…fer lifetime All the key packing buffers in the MyRocks handler have exactly the same lifetime between alloc_key_buffers and free_key_buffers. Thus allocate a single large buffer and point the key packing buffers to offsets inside it, reducing number of calls to the heap allocator on table opening/close code path. Annotate the padding bytes for Valgrind as inaccessible. Add additional handling for m_pack_buffer: since its use it's fully contained in Rdb_key_def::pack_record, annotate it as such.
- Loading branch information
1 parent
6aba81d
commit 59f1fb8
Showing
3 changed files
with
60 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters