At some large companies the simple act of making a commit takes the better part of an hour. Same with checking out, updating, etc.
This has serious implications for the development style and productivity. At the very least, not every developer can adapt to such a style.
"It's too slow" is not a trivial problem to solve.
Anything but.
Depends on your viewpoint, but I'd argue it's not actually that hard to solve unless you also require you solve it within the context of Git. For example, in most systems, you can do something called a narrow checkout, where you only grab part of the tree of the whole repository. Subversion, Monotone, Perforce, and (soon) Mercurial all support this, whereas Git does not--and, the last I looked at the Git protocol, it wouldn't have been sane to implement. (Been about two years at this point, so I apologize if that has changed.)Beyond that, even local commit in a single repo is actually pretty easy to solve if you have file watchers (powered by e.g. inotify, kqueue), which at least Mercurial does, and I'd honestly swear Git does also.
At that point, I don't think there's a lot left that inherently has to make commits take the better part of an hour. If you are at such a company, please take a moment to run strace or something; I'm really curious where the tool's spending so much time.
Git's "sparse checkout" feature can grab a part of a larger repo from memory.
Since Version 1.9 (released early 2014), you can use such a repo like a normal one (push, clone from it, ...)
Go on vacation for two weeks? You get to go on another vacation while you wait for your monorepo to update. Similarly, good luck ever trying to work from a coffee shop -- at the very least you probably have 50mb of updates because everyone in the company is committing code all the time.
If you care, you should read about how Google makes sure this doesn't happen.
> By putting our revision history in the cloud we provide engineers with complete access to all the source, and yet almost no time is spent checking out code.
http://google-engtools.blogspot.com/2011/06/build-in-cloud-a...
http://google-engtools.blogspot.com/2011/08/build-in-cloud-h...
That said, I find your note a bit amusing. I'd have agreed a decade ago, but nowadays, 50 MB should take effectively zero time for you to both download and apply. It's worth revisiting things like this as LANs and the internet get faster; I think the speed comment is a bit outdated now.
I agree that it should take effectively zero time for me to download and apply 50MB of updates, but poor quality internet is still pretty easy to find (working with plane wifi) -- maybe my coffee shops have worse internet than yours!
Without any barriers, it's way too easy for things to devolve into spaghetti code.
I searched but I honestly can't find them. The only things I can think of are: implementation problems (repo too large, every git pull takes more time than strictly necessary for your project) and tainting tools like "git log".
Those don't seem very fundamental. Solvable by a "monogit" wrapper, if someone put their mind to it. Or are they?
Is there a fundamental problem I'm missing? I feel stupid for asking, given how matter of fact he dismissed it :(
EDIT: I guess what I'm trying to say is: monorepos feel, theoretically, like a strict superset of many independent ones. It's just the tooling that makes it less convenient.