From 623df388782dcfe70f4f147cb24197e535f9c89b Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Wed, 21 Jan 2026 15:48:25 +0100 Subject: pkg/codesearch: reduce memory consumption a bit more Use uint32 instead of int for line numbers (2G lines should be enough for everyone). Reorder fields to remove unnecessary paddings. --- pkg/codesearch/testdata/mm/refs.c.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'pkg/codesearch/testdata/mm/refs.c.json') diff --git a/pkg/codesearch/testdata/mm/refs.c.json b/pkg/codesearch/testdata/mm/refs.c.json index 09ac87f98..50aa676be 100644 --- a/pkg/codesearch/testdata/mm/refs.c.json +++ b/pkg/codesearch/testdata/mm/refs.c.json @@ -1,9 +1,9 @@ { "definitions": [ { - "kind": "function", "name": "ref_in_mm", "type": "void ()", + "kind": "function", "body": { "file": "mm/refs.c", "start_line": 3, @@ -12,9 +12,9 @@ "comment": {}, "refs": [ { + "name": "refs2", "kind": "calls", "entity_kind": "function", - "name": "refs2", "line": 5 } ] -- cgit mrf-deployment