1
0
Fork 0
mirror of https://github.com/miniflux/v2.git synced 2025-09-30 19:22:11 +00:00
miniflux-v2/internal
Julien Voisin 3051acf369
perf(xml): eliminate bound checks in filterValidXMLChars
Optimizes the filterValidXMLChars function by changing the loop variable type from int to uint to eliminate bound checks during compilation, resulting in a ~4% performance improvement.

- Changes loop variable i from int to uint to remove compiler-generated bound checks
- Adjusts type conversions accordingly to maintain correctness

```
goos: linux
goarch: arm64
pkg: miniflux.app/v2/internal/reader/parser
        │   old.txt   │              new.txt               │
        │   sec/op    │   sec/op     vs base               │
Parse-8   40.91m ± 3%   39.30m ± 2%  -3.94% (p=0.000 n=50)
```
2025-09-08 15:33:55 -07:00
..
api fix(api): do not return removed entries 2025-08-23 15:17:37 -07:00
cli refactor: avoid unnecessary usage of Printf 2025-09-08 11:54:16 -07:00
config fix(config): FORCE_REFRESH_INTERVAL duration should be in minutes 2025-08-25 15:46:10 -07:00
crypto perf(reader): use a non-cryptographic hash when possible 2025-06-18 20:28:23 -07:00
database perf: convert some slices to array 2025-09-08 12:11:18 -07:00
fever refactor: Replace "Bookmarks" with "Starred" 2025-08-20 20:49:45 -07:00
googlereader refactor: avoid unnecessary usage of Printf 2025-09-08 11:54:16 -07:00
http refactor(cli): use time.Duration for cleanup tasks 2025-08-20 19:45:24 -07:00
integration refactor: avoid unnecessary usage of Printf 2025-09-08 11:54:16 -07:00
locale feat(locale): update Polish translation 2025-08-24 13:04:25 -07:00
mediaproxy refactor(mediaproxy): use *url.URL for MEDIA_PROXY_CUSTOM_URL 2025-08-15 18:12:44 -07:00
metric refactor(metric): use time.Duration for refresh duration 2025-08-20 19:45:24 -07:00
model refactor: remove model.UserSessions struct 2025-09-08 11:56:43 -07:00
oauth2 feat(oidc): use preferred_username first instead of email claim 2025-06-08 18:05:47 -07:00
proxyrotator refactor(proxyrotator): simplify mutex handling 2025-07-07 15:52:16 -07:00
reader perf(xml): eliminate bound checks in filterValidXMLChars 2025-09-08 15:33:55 -07:00
storage refactor: remove model.UserSessions struct 2025-09-08 11:56:43 -07:00
systemd Move internal packages to an internal folder 2023-08-10 20:29:34 -07:00
template refactor(template): rename noescape to safeHTML 2025-08-22 12:51:21 -07:00
timezone perf(timzone): cache getLocation's results 2025-06-08 13:50:18 -07:00
ui fix(ui): incorrect force refresh interval unit used in messages 2025-09-08 12:12:11 -07:00
urllib perf(sanitizer): improve the performances of the sanitizer (#3497) 2025-07-07 15:21:13 -07:00
validator perf(validator): slightly optimize a regex 2025-06-10 19:20:58 -07:00
version test(version): add a test to enforce the version format 2025-08-18 19:51:09 -07:00
worker feat: add POLLING_LIMIT_PER_HOST to limit concurrent requests per host 2025-08-08 12:33:46 -07:00