-
Notifications
You must be signed in to change notification settings - Fork 73
Improve memory layout of locations, functions, and mappings #814
Conversation
// case the line information above represents one of the multiple | ||
// symbols. This field must be recomputed when the symbolization state of the | ||
// profile changes. | ||
IsFolded bool |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
struct padding should be improved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are two changes comparing to the proto definition:
MappingId
type uint64 -> uint32;IsFolded
moved next toMappingId
, to avoid extra-padding.
The current type size is 48 bytes, given the 8-bytes alignment. Further improvement seems impossible.
7a15b6f
to
45ff18a
Compare
45ff18a
to
9e5565e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Nice work, this will help our memory headroom 🙂
…phlare#814) * Use separate representation for in-memory and parquet * Ensure backward compatibility * Remove unused function
Addresses #797
The numbers below is an estimate of the memory consumption reduce:
It is expected that the overall memory consumption of the cluster will be reduced by appx. 20%.