diff options
author | Sebastian Thiel <byronimo@gmail.com> | 2010-06-22 12:03:37 +0200 |
---|---|---|
committer | Sebastian Thiel <byronimo@gmail.com> | 2010-06-22 12:03:37 +0200 |
commit | c4f49fb232acb2c02761a82acc12c4040699685d (patch) | |
tree | 57e86ae1ca34f7e3e658b1f078f705ba1b397c10 /lib/git/ext/gitdb | |
parent | d2d9197cfe5d3b43cb8aee182b2e65c73ef9ab7b (diff) | |
download | gitpython-c4f49fb232acb2c02761a82acc12c4040699685d.tar.gz |
index.write_tree: now uses MemoryDB, making tree handling more efficient as IO will only be done when required. A possible disadvantage though is that time is spent on compressing the trees, although only the raw data and their shas would theoretically be needed. On the other hand, compressing their data uses less memory. An optimal implementation would just sha the data, check for existance, and compress it to write it to the database right away. This would mean more specialized code though, introducing redundancy. If IStreams would know whether they contain compressed or uncompressed data, and if there was a method to get a sha from data, this would work nicely in the existing framework though
Diffstat (limited to 'lib/git/ext/gitdb')
m--------- | lib/git/ext/gitdb | 0 |
1 files changed, 0 insertions, 0 deletions
diff --git a/lib/git/ext/gitdb b/lib/git/ext/gitdb -Subproject 92ca2e4ad606fbec7c934ad9e467a1b51fddcc9 +Subproject 9b53ab02cb44571e6167a125a5296b7c3395563 |