Skip to content

perf(internal): reorder some struct members#4427

Draft
jvoisin wants to merge 1 commit into
miniflux:mainfrom
jvoisin:aligogogo
Draft

perf(internal): reorder some struct members#4427
jvoisin wants to merge 1 commit into
miniflux:mainfrom
jvoisin:aligogogo

Conversation

@jvoisin

@jvoisin jvoisin commented Jun 27, 2026

Copy link
Copy Markdown
Collaborator

This saves a handful of memory space, and was done with aligo (https://github.com/essentialkaos/aligo), mostly aligo check ./... and aligo view ./whatever/package.

While the changes might not seem that impactful, some are dropping space taken by some structures enough to save some words (assuming 64 bits architectures), which is always nice.

More structures could be golfed, but it would significantly hurt readability, so let's no do it.

This saves a handful of memory space, and was done with aligo
(https://github.com/essentialkaos/aligo), mostly `aligo check ./...` and `aligo
view ./whatever/package`.

While the changes might not seem that impactful, some are dropping space taken
by some structures enough to save some words (assuming 64 bits architectures),
which is always nice.

More structures could be golfed, but it would significantly hurt readability,
so let's no do it.
@gudvinr

gudvinr commented Jul 4, 2026

Copy link
Copy Markdown
Contributor

I must admit I like the approach.

Every time I check out alignment linters they just make structs look unintuitive. And within big codebase they only produce noise.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants