diff options
| author | Paul Buetow <paul@buetow.org> | 2026-04-27 09:34:16 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-04-27 09:34:16 +0300 |
| commit | fe142ba40f1866dd9e4855e8d6a00857e6f90bec (patch) | |
| tree | 84a0da8e0967947c913118edefb6d2b6767322c9 /internal/processor/processor.go | |
| parent | 1cfca79184e8cc2214d971c98feb1306bc801e0c (diff) | |
+code-quality Add slice capacity pre-allocation in loadAllPosts and paginate
- loadAllPosts: pre-allocate posts slice with capacity len(entries) since
each directory entry may become a post.
- paginate: pre-allocate pages slice with capacity (len(posts)+pageSize-1)/pageSize.
The concat function no longer exists in the codebase (removed when theme
sound data was moved to embedded JSON files in commit 06dd860).
Diffstat (limited to 'internal/processor/processor.go')
0 files changed, 0 insertions, 0 deletions
