1
0
Fork 0
mirror of https://github.com/miniflux/v2.git synced 2025-08-06 17:41:00 +00:00
miniflux-v2/internal/reader/parser
jvoisin d6d18a2d61 perf(reader): shrink the json detection buffer
There is no need to allocate half a kilobyte of memory only check that a buffer
starts with a bunch of spaces and a `{`, 32b should be more than enough. Also,
no need to allocate it on the heap, having it on the stack works perfectly.
2025-07-07 19:21:59 -07:00
..
testdata When detecting the format, detect its version as well 2024-03-12 18:56:56 -07:00
format.go perf(reader): shrink the json detection buffer 2025-07-07 19:21:59 -07:00
format_test.go When detecting the format, detect its version as well 2024-03-12 18:56:56 -07:00
parser.go When detecting the format, detect its version as well 2024-03-12 18:56:56 -07:00
parser_test.go refactor(tests): use b.Loop() instead of for range b.N 2025-06-18 20:12:55 -07:00