openstack-k8s-operators / horizon-operator

Apache License 2.0
1 stars 26 forks source link

Fix struct field alignments #300

Closed bshephar closed 8 months ago

bshephar commented 8 months ago

This change reorganizes the objects in some of the structs to better align liked sized objects in memory. This reduces the overall memory allocation for each struct by reducing the required padding to align each item.

abays commented 8 months ago

@bshephar Interesting. What did you consult to figure this out?

openshift-ci[bot] commented 8 months ago

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: abays, bshephar

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files: - ~~[OWNERS](https://github.com/openstack-k8s-operators/horizon-operator/blob/main/OWNERS)~~ [abays,bshephar] Approvers can indicate their approval by writing `/approve` in a comment Approvers can cancel approval by writing `/approve cancel` in a comment