Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use a home-made implementation of Titelize #3028

Merged
merged 2 commits into from
Dec 24, 2024
Merged

Conversation

jvoisin
Copy link
Collaborator

@jvoisin jvoisin commented Dec 21, 2024

The implementation is equivalent to cases.Title(language.English).String(strings.ToLower(…)), and this is the only place in miniflux where "golang.org/x/text/cases" and "golang.org/x/text/language" are (directly) used.

This reduces the binary size from 27015590 to 26686112 on my machine.

Kudos to https://gsa.zxilly.dev for making it straightforward to catch things like this.

The implementation is equivalent to
`cases.Title(language.English).String(strings.ToLower(…))`,
and this is the only place in miniflux where
"golang.org/x/text/cases" and "golang.org/x/text/language"
are (directly) used.

This reduces the binary size from 27015590 to
26686112 on my machine.

Kudos to https://gsa.zxilly.dev for making it straightforward to catch things
like this.
@fguillot fguillot merged commit 195b75d into miniflux:main Dec 24, 2024
15 checks passed
@jvoisin jvoisin deleted the noang branch December 26, 2024 22:55
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