From 42cea1e7c6d1ea0658e6b4d2a1f12f98b9c0dd22 Mon Sep 17 00:00:00 2001 From: Ophestra Date: Wed, 3 Jun 2026 15:51:43 +0900 Subject: internal/pkg: streaming archive reader/writer This is much more robust and efficient than the simple buffering implementation for larger files. Allocations happen almost exclusively in WalkDir. Signed-off-by: Ophestra --- internal/pkg/ir.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'internal/pkg/ir.go') diff --git a/internal/pkg/ir.go b/internal/pkg/ir.go index 366d9ca0..95bdddcb 100644 --- a/internal/pkg/ir.go +++ b/internal/pkg/ir.go @@ -21,7 +21,7 @@ import ( const wordSize = 8 // alignSize returns the padded size for aligning sz. -func alignSize(sz int) int { +func alignSize[T int | uint64](sz T) T { return sz + (wordSize-(sz)%wordSize)%wordSize } -- cgit v1.3.1