Skip to content

Skip boltdb update call when queue is empty - #3261

Merged
tonistiigi merged 1 commit into
moby:masterfrom
alexcb:acb/skip-metadata-update-on-empty-queue
Nov 8, 2022
Merged

Skip boltdb update call when queue is empty#3261
tonistiigi merged 1 commit into
moby:masterfrom
alexcb:acb/skip-metadata-update-on-empty-queue

Conversation

@alexcb

@alexcb alexcb commented Nov 8, 2022

Copy link
Copy Markdown
Collaborator

This prevents unnecessary calls (and disk writes) to the metadata cache db when there are no items in the queue.

Some quick testing on my laptop with a cache containing 26,000 items; this change reduced buildkit startup time from roughly 46 seconds down to 2 seconds.

This prevents unnecessary calls (and disk writes) to the metadata cache db when there are
no items in the queue.

Signed-off-by: Alex Couture-Beil <alex@earthly.dev>
@alexcb
alexcb marked this pull request as ready for review November 8, 2022 21:23
@alexcb
alexcb requested a review from tonistiigi November 8, 2022 21:23
@tonistiigi
tonistiigi merged commit a5263dd into moby:master Nov 8, 2022
@alexcb
alexcb deleted the acb/skip-metadata-update-on-empty-queue branch November 8, 2022 22:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants