apple / apple/container

[Request]: Improve builder performance when build context is large

Open
#1,515 0 comments 0 reactions 1 assignee Claimed by @JaewonHur View on GitHub
builder next
Dominant language
Swift
Stars
49.9k
Forks
1.8k
Avg merge
1d 20h
Merged PRs (30d)
22

Description

### Feature or enhancement request details

Current builder archives entire build context and send it to builder VM while it also supports on-demand file provision through proxy. This was a technical decision to avoid overheads due to the large amount of gRPC calls (for file transfer) when the build context is large. However, it becomes another bottleneck, as archiving consumes lots of CPU cycles when the build context is huge.

With the recent support of docker ignore, users can selectively ignore files so that buildkit daemon reads only those files. Thus, we can still lower the number of file transfers without archiving entire build context.

### Code of Conduct

- [x] I agree to follow this project's Code of Conduct

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.