Skip to content

cascache.py: Use UploadTree with storage-service, if available#1966

Merged
juergbi merged 2 commits intomasterfrom
juerg/uploadtree
Nov 6, 2024
Merged

cascache.py: Use UploadTree with storage-service, if available#1966
juergbi merged 2 commits intomasterfrom
juerg/uploadtree

Conversation

@juergbi
Copy link
Contributor

@juergbi juergbi commented Nov 1, 2024

Cache query is currently relatively slow when storage-service is enabled as the tree traversals are handled by Python code. Calling UploadTree moves that logic to buildbox-casd, which is significantly faster.

In local tests I've seen a 2-4x improvement of the cache query speed.

The corresponding buildbox-casd change is pending in https://gitlab.com/BuildGrid/buildbox/buildbox/-/merge_requests/757. The current code is kept as fallback path, i.e., current/older versions of buildbox-casd continue to be supported, without the optimization.

Cache query is currently relatively slow when `storage-service` is
enabled as the tree traversals are handled by Python code. Calling
`UploadTree` moves that logic to buildbox-casd, which is significantly
faster.
@abderrahim
Copy link
Contributor

Is this the last missing piece of #1042? Or is there more to it?

@juergbi
Copy link
Contributor Author

juergbi commented Nov 6, 2024

Is this the last missing piece of #1042? Or is there more to it?

There is still room for further optimizations (not related to storage-service) with UploadTree (and maybe also FetchTree). That said, I'm fine with closing #1042 and opening new issues as needed.

@juergbi juergbi merged commit 65e2074 into master Nov 6, 2024
@juergbi juergbi deleted the juerg/uploadtree branch November 6, 2024 10:14
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