View previous topic :: View next topic |
Author |
Message |
sitquietly Apprentice
Joined: 23 Oct 2010 Posts: 150 Location: On the Wolf River, Tennessee
|
Posted: Tue Mar 02, 2021 8:48 am Post subject: |
|
|
DaggyStyle wrote: | ...
have you considered using ccache? |
If anyone here has experience using ccache with portage please let us know if it works out well -- I use ccache when building FreeBSD ports (using clang) and it's a life-saver for webengine. Building webengine the first time takes forever (about 18 hours as I recall -- on my Ivy Bridge i5 with 32 GB ddr3 ram), and a rebuild with ccache finished in as little as 18 minutes (but typically several hours).
Do you recommend I use ccache on Gentoo? |
|
Back to top |
|
|
DaggyStyle Watchman
Joined: 22 Mar 2006 Posts: 5929
|
Posted: Thu Mar 04, 2021 6:28 am Post subject: |
|
|
sitquietly wrote: | DaggyStyle wrote: | ...
have you considered using ccache? |
If anyone here has experience using ccache with portage please let us know if it works out well -- I use ccache when building FreeBSD ports (using clang) and it's a life-saver for webengine. Building webengine the first time takes forever (about 18 hours as I recall -- on my Ivy Bridge i5 with 32 GB ddr3 ram), and a rebuild with ccache finished in as little as 18 minutes (but typically several hours).
Do you recommend I use ccache on Gentoo? |
look here: https://wiki.gentoo.org/wiki/Ccache
I don't use ccache, I prefer compiling anything from scratch even if it means the output will be the same. _________________ Only two things are infinite, the universe and human stupidity and I'm not sure about the former - Albert Einstein |
|
Back to top |
|
|
Hund Apprentice
Joined: 18 Jul 2016 Posts: 218 Location: Sweden
|
Posted: Thu Mar 04, 2021 9:15 am Post subject: |
|
|
DaggyStyle wrote: | sitquietly wrote: | DaggyStyle wrote: | ...
have you considered using ccache? |
If anyone here has experience using ccache with portage please let us know if it works out well -- I use ccache when building FreeBSD ports (using clang) and it's a life-saver for webengine. Building webengine the first time takes forever (about 18 hours as I recall -- on my Ivy Bridge i5 with 32 GB ddr3 ram), and a rebuild with ccache finished in as little as 18 minutes (but typically several hours).
Do you recommend I use ccache on Gentoo? |
look here: https://wiki.gentoo.org/wiki/Ccache
I don't use ccache, I prefer compiling anything from scratch even if it means the output will be the same. |
Why's that? I don't use ccache myself, but it looks interesting if you can save time and money. _________________ Collect memories, not things. |
|
Back to top |
|
|
Hu Administrator
Joined: 06 Mar 2007 Posts: 22626
|
Posted: Thu Mar 04, 2021 5:31 pm Post subject: |
|
|
ccache is great when it works, but leads to weird problems when it fails. Unfortunately, enough high-profile packages misbehave with it that standard doctrine now is that you only use ccache on packages which are specifically known to work, rather than using it everywhere.
As a complication, ccache works best when the same files are rebuilt regularly. If you build too many packages with ccache before coming back to one that has been done before, the cached files you need may have expired, and you get no benefit. Regardless of whether you get any benefit, there is always a small cost to maintaining the cache. |
|
Back to top |
|
|
Hund Apprentice
Joined: 18 Jul 2016 Posts: 218 Location: Sweden
|
Posted: Thu Mar 04, 2021 6:26 pm Post subject: |
|
|
Hu wrote: | ccache is great when it works, but leads to weird problems when it fails. Unfortunately, enough high-profile packages misbehave with it that standard doctrine now is that you only use ccache on packages which are specifically known to work, rather than using it everywhere.
As a complication, ccache works best when the same files are rebuilt regularly. If you build too many packages with ccache before coming back to one that has been done before, the cached files you need may have expired, and you get no benefit. Regardless of whether you get any benefit, there is always a small cost to maintaining the cache. |
Thank you for the information! _________________ Collect memories, not things. |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|