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

Refactor internal/reader/readability/readability.go #3006

Merged
merged 1 commit into from
Dec 13, 2024

Conversation

jvoisin
Copy link
Collaborator

@jvoisin jvoisin commented Dec 12, 2024

  • Replace a completely overkill regex
  • Use .Remove() instead of a hand-rolled loop
  • Use a strings.Builder instead of a bytes.NewBufferString
  • Replace a call to Fprintf with string concatenation, as the latter are much faster
  • Remove a superfluous cast
  • Delay some computations
  • Add some tests

- Replace a completely overkill regex
- Use `.Remove()` instead of a hand-rolled loop
- Use a strings.Builder instead of a bytes.NewBufferString
- Replace a call to Fprintf with string concatenation, as the latter are much
  faster
- Remove a superfluous cast
- Delay some computations
- Add some tests
@fguillot fguillot merged commit 6ad5ad0 into miniflux:main Dec 13, 2024
16 checks passed
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