From a803021eef8ce75d94f04dd7a8c3c867271e7705 Mon Sep 17 00:00:00 2001 From: vyzo Date: Thu, 12 May 2022 16:48:31 +0300 Subject: [PATCH] add TODO about the bundle load cost --- cli/init.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cli/init.go b/cli/init.go index e5dc45fea..25d6a1116 100644 --- a/cli/init.go +++ b/cli/init.go @@ -11,6 +11,8 @@ import ( func init() { // preload manifest so that we have the correct code CID inventory for cli since that doesn't // go through CI + // TODO loading the bundle in every cli invocation adds some latency; we should figure out a way + // to load actor CIDs without incurring this hit. bs := blockstore.NewMemory() if err := bundle.FetchAndLoadBundles(context.Background(), bs, build.BuiltinActorReleases); err != nil {