From 1f710b08fc40d6077b0065a25c5d7ab5d0750e7a Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Fri, 26 May 2017 15:32:51 +0200 Subject: sys: generate arrays instead of maps Compilation of large maps is super slow. Generate arrays instead and converet to maps at runtime. Reduces build time from ~40s to ~2s. Update #182 --- sys/align.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys/align.go') diff --git a/sys/align.go b/sys/align.go index e1ce27d56..00d464bcb 100644 --- a/sys/align.go +++ b/sys/align.go @@ -32,7 +32,7 @@ func initAlign() { } } - for _, s := range Structs { + for _, s := range keyedStructs { rec(s) } } -- cgit mrf-deployment