Complying with byte-alignment constraints often entails the padding of bytes between entries of an object and between objects, leading to wasted memory. This disclosure describes techniques to substantially reduce or eliminate intra-object and inter-object padding. Entries within an object are arranged in an ascending-then-descending order, such that they can be placed adjacent to each other with no padding between them. Alignment constraints are satisfied by introducing a padding at the start of the object. Inter-object padding is reduced by arranging the elements of an object adjacent to one another and towards one end of the object.
Creative Commons License
This work is licensed under a Creative Commons Attribution 4.0 License.
Kim, Hyojun, "Compact, Alignment-Compliant Object Placement in Memory", Technical Disclosure Commons, (March 15, 2021)