4 ms·
A gigabyte of source code!? That's the entire depot not just one tag, right?
by gaius 16y ago
A gigabyte of source code!? That's the entire depot not just one tag, right?
- pmjordan 16y agoThe Linux kernel currently is around 450MB of source code. I've worked on individual projects with 1-2MLOC, I suspect that's about 100MB of code. A couple of those don't seem all that implausible.
- gaius 16y agoHmm yulia:/usr/src# bzcat linux-source-2.6.32.tar.bz2 |wc -c 382382080 382M. Tho' is it really one "thing"? A lot of that is device drivers, loadable modules etc that no single install will ever have.
- pmjordan 16y agoI guess my 450MB are from 2.6.34 and are the disk usage of the actual untarred sources that I'm working from, so my figure includes cluster off-cuts (the bytes needed to round up to the nearest 4096 for each file). It's certainly one thing in that it all uses the same build script; and any of the pieces are pretty worthless on their own.
- fierarul 16y agoActually, it's just about 800MB of source code with 150MB of external dependencies. I never counted the lines of code until today but apparently just for the main language there are over 9 MLOC. Of course, this doesn't actually matter as I don't touch most of the code and the "recently active" part seems to measure only about 275 KLOC. But when a bug arrives it might take me anywhere; even so, I don't think I've visited more than 35% of the codebase.