tvl-depot/tvix/nar-bridge/pkg/importer
Connor Brewster 85421b7f97 feat(tvix/store/nar-info): Support async blob upload
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>
2024-01-23 17:01:16 +00:00
..
blob_upload.go chore(tvix/nar-bridge): update to latest go mod renames 2023-10-17 20:46:38 +00:00
counting_writer.go refactor(tvix/nar-bridge): combine writers/readers 2023-10-05 06:17:10 +00:00
directory_upload.go chore(tvix/nar-bridge): update to latest go mod renames 2023-10-17 20:46:38 +00:00
gen_pathinfo.go chore(tvix/nar-bridge): update to latest go mod renames 2023-10-17 20:46:38 +00:00
importer.go feat(tvix/store/nar-info): Support async blob upload 2024-01-23 17:01:16 +00:00
importer_test.go chore(tvix/nar-bridge): update to latest go mod renames 2023-10-17 20:46:38 +00:00
roundtrip_test.go feat(tvix/store/nar-info): Support async blob upload 2024-01-23 17:01:16 +00:00
util_test.go chore(tvix/nar-bridge): update to latest go mod renames 2023-10-17 20:46:38 +00:00