Originally posted by Ironmask
View Post
Announcement
Collapse
No announcement yet.
OpenMandriva Is Finding Great Success In Their Switch To Using LLVM's Clang Compiler
Collapse
X
-
- Likes 1
-
Originally posted by atomsymbolIf compiling a single file with two compilers the elapsed time is max(gcc, clang), not gcc+clang. This is because the two can run in parallel on a multi-core CPU.
The box I'm on right now is an 8-core (16 threads) Ryzen 2700x. All cores are at 100% load, Load average 46.64, 37.33, 22.47. Compiling things twice would certainly slow things down (and ccache wouldn't help a lot unless there was a giant disk for caching stuff -- it's not the same package being built all the time).
Comment
-
Originally posted by atomsymbol
I agree. The cache size should be at least several gigabytes. I am using several caches of size 2-4 GiB.
The cache hit ratio for Gentoo package builds is currently at 31% on my machine. The hit ratio for $HOME/.ccache is 90%. The hit ratio depends on which build system the developer is using.
A long term hit ratio of X% means that Load average on your machine could drop by up to X%.
The age of some files in the cache can be several months.
Enabling ccache unconditionally for all builds has a small overhead in the worst case scenario.
There is CCACHE_COMPRESS env variable which enables compression. There is also CCACHE_COMPRESSLEVEL. Compression can be enabled in ccache.conf as well.
Comment
-
Read this free book to put the GPL vs permissive debate to rest https://mises.org/library/against-in...ual-property-0
- Likes 1
Comment
-
Originally posted by mastermind View PostRead this free book to put the GPL vs permissive debate to rest https://mises.org/library/against-in...ual-property-0
It's somewhat ironic that Stallman is pro "Free Software" and not fond of "Open Source" on the basis that Free Software is supposedly about freedom and the principles whereas Open Source is more about pragmatism. I later discovered it's actually the other way around.
However, I don't see the GPL as the work of the devil. I think Stallman & Co have done great things & with good intentions. His work has lifted us up. I think we just need to keep climbing higher.
- Likes 1
Comment
Comment