1
0
Fork 0
mirror of https://github.com/miniflux/v2.git synced 2025-08-11 17:51:01 +00:00
miniflux-v2/internal/reader/parser
Julien Voisin a43d150a27
refactor(parser): centralize seek logic and provide a hint for the compiler to eliminate a useless bound check
- Move the seeking inside of DetectFeedFormat instead of having it everywhere
  in ParseFeed
- Provide a hint for the compiler to eliminate a useless bound check in
  DetectJSONFormat, otherwise it'll check that buffer[i] is valid on every
  iteration of the loop. This shouldn't make a big difference, but oh well.
2025-08-03 12:53:10 -07:00
..
testdata When detecting the format, detect its version as well 2024-03-12 18:56:56 -07:00
format.go refactor(parser): centralize seek logic and provide a hint for the compiler to eliminate a useless bound check 2025-08-03 12:53:10 -07:00
format_test.go fix(parser): handle feeds with leading whitespace that exceeds buffer size 2025-07-23 21:06:15 -07:00
parser.go refactor(parser): centralize seek logic and provide a hint for the compiler to eliminate a useless bound check 2025-08-03 12:53:10 -07:00
parser_test.go refactor(tests): use b.Loop() instead of for range b.N 2025-06-18 20:12:55 -07:00