diff options
author | Connor Brewster <cbrewster@hey.com> | 2024-01-23T02·37-0600 |
---|---|---|
committer | Connor Brewster <cbrewster@hey.com> | 2024-01-23T17·01+0000 |
commit | 85421b7f973e64ce9ec6f8d675854b0970967794 (patch) | |
tree | 08804ea51b9a3033dbc8b1dc4888dd76a30eb019 /tvix/store-go/rpc_pathinfo.pb.go | |
parent | d0563294121a85ecddbcc44474373b9293c31e7f (diff) |
feat(tvix/store/nar-info): Support async blob upload r/7443
Right now all blob uploads are performed synchronously, this means if a NAR contains many small files, the import time is dominated by round trip time to the blob service. For small files, we can buffer them in memory and upload them asynchronously to the blob service. Before returning we make sure to join all the uploads to make sure they complete successfully before responding OK. This reduces time to import a bash-interactive closure on my machine from 1m19s to 7s. Change-Id: Ica3695c159e6c8ad8769281ac20d037e3143e856 Reviewed-on: https://cl.tvl.fyi/c/depot/+/10679 Tested-by: BuildkiteCI Reviewed-by: flokli <flokli@flokli.de> Autosubmit: Connor Brewster <cbrewster@hey.com>
Diffstat (limited to 'tvix/store-go/rpc_pathinfo.pb.go')
0 files changed, 0 insertions, 0 deletions