Thread (1 message) 1 message, 1 author, 2016-06-15

Re: Git chokes on large file

From: Dale R. Worley <hidden>
Date: 2016-06-15 23:01:25

From: David Lang <redacted>
well, as others noted, the problem is actually caused by doing the diffs, and 
that is something that is a very common thing to do with source code.
To some degree, my attitude comes from When I Was A Boy, when you got
16k for both your bytecode and your data, so you never kept more than
one line of a file in memory unless you had to.

Regardless of that, the problem with "git fsck" is not due to doing
diffs, and "git commit" by default does diffs even if you don't ask
for them, so the observed problems cannot be subsumed under the label
"you asked for a diff of a file that can't be diffed".
And I would assume that files of several MB would be able to fit in
memory (again, this was assumed to be for development, and compilers
take a lot of ram to run, so having enough ram to hold any
individual source file while the compiler is _not_ using ram doesn't
seem likely to be a problem)
At least the first versions of GCC only kept one function (and the
global symbol table) in memory at once, so you could compile a source
file that was larger than the available memory.

In any case, if Git is no longer limited to handling source files, it
needs to be updated so it can handle large files.

Dale
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help