Closed aaronlehmann closed 2 years ago
openllb/hlb#286 changed FileBuffer to return a newly constructed SourceMap on each call to the SourceMap method. This causes a dramatic increase in the gRPC request size, because It turns out that BuildKit deduplicates source maps based on pointer address: https://github.com/moby/buildkit/blob/d21254e7f74b49a84c3fbe1b13260cb23954cf92/client/llb/sourcemap.go#L57
FileBuffer
SourceMap
Reuse the same SourceMap structure when nothing has changed.
openllb/hlb#286 changed
FileBuffer
to return a newly constructedSourceMap
on each call to theSourceMap
method. This causes a dramatic increase in the gRPC request size, because It turns out that BuildKit deduplicates source maps based on pointer address: https://github.com/moby/buildkit/blob/d21254e7f74b49a84c3fbe1b13260cb23954cf92/client/llb/sourcemap.go#L57Reuse the same
SourceMap
structure when nothing has changed.