Skip to content
This repository has been archived by the owner on May 17, 2022. It is now read-only.

Speed up C++ builds via mounting ccache directory as a docker volume #136

Closed
kszucs opened this issue Jul 24, 2019 · 3 comments
Closed

Speed up C++ builds via mounting ccache directory as a docker volume #136

kszucs opened this issue Jul 24, 2019 · 3 comments

Comments

@kszucs
Copy link
Contributor

kszucs commented Jul 24, 2019

The plan here is to use mount a volume for each builder under ~/.ccache similarly like the JS builder does. This would spare ~3 minutes out of the current ~6 minutes builds.

class ArrowCppTest(DockerBuilder):
    volumes = [
        lambda builder: f'{slugify(builder.name)}:/root/.ccache:rw'
    ]

@pitrou is it safe enough to use the same ccache directory between revisions, including that the dependencies are also evolving over time.

@pitrou
Copy link

pitrou commented Jul 24, 2019

@pitrou is it safe enough to use the same ccache directory between revisions

Probably? However, you probably need a different volume for each builder (I'm not sure concurrent access would work).

@kszucs
Copy link
Contributor Author

kszucs commented Jul 24, 2019

One volume per builder is the original plan, just not sure about ccache "consistency over speed" capabilities.

@kszucs
Copy link
Contributor Author

kszucs commented Jul 26, 2019

resolved by #135

@kszucs kszucs closed this as completed Jul 26, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants