Skip to content

Optimalize structs for size (alignment by rearranging) #149

@tgulacsi

Description

@tgulacsi
go get -u github.com/orijtech/structslop/cmd/structslop
structslop github.com/godror/godror

reported a few structs that could be rearranged to become smaller.

I understand that *char and its length should be together, so maybe this rearrangement has too few gains and too big price for structs that are only have a few instances in a program, such as dpiConnCreateParams or dpiCommonCreateParams.

But may more gain more with dpiSubscrMessageTable and dpiSubscrMessage.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions