about summary refs log tree commit diff stats
path: root/internal/components/combined.go
diff options
context:
space:
mode:
authorAlan Pearce2025-03-21 21:55:00 +0100
committerAlan Pearce2025-03-21 21:55:00 +0100
commit9c9aa6b408812248c9f8c29ecc3546ef64947ea8 (patch)
treeb99f6e9f62f232db8fff7499a6ddab0b287b5ea3 /internal/components/combined.go
parente8fbdf3bd12c8920a6e9bd84b34e787764b11eaf (diff)
downloadsearchix-9c9aa6b408812248c9f8c29ecc3546ef64947ea8.tar.lz
searchix-9c9aa6b408812248c9f8c29ecc3546ef64947ea8.tar.zst
searchix-9c9aa6b408812248c9f8c29ecc3546ef64947ea8.zip
perf: iterate over results without keeping the set in memory
Diffstat (limited to 'internal/components/combined.go')
-rw-r--r--internal/components/combined.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/components/combined.go b/internal/components/combined.go
index d8c6fea..fe97e14 100644
--- a/internal/components/combined.go
+++ b/internal/components/combined.go
@@ -36,7 +36,7 @@ func Combined(result *index.Result) g.Node {
 			),
 		),
 		TBody(
-			g.Map(result.Hits, func(hit index.DocumentMatch) g.Node {
+			g.MapIter(result.Hits, func(hit index.DocumentMatch) g.Node {
 				return Tr(
 					Td(
 						openCombinedDialogLink(nix.GetKey(hit.Data)),