Selaa lähdekoodia

Add note about performance, update NEWS.

Jelmer Vernooij 9 vuotta sitten
vanhempi
commit
826d050f4f
2 muutettua tiedostoa jossa 5 lisäystä ja 0 poistoa
  1. 3 0
      NEWS
  2. 2 0
      dulwich/client.py

+ 3 - 0
NEWS

@@ -21,6 +21,9 @@
 
   * Fix inconsistent handling of trailing slashes for DictRefsContainer. (#383)
 
+  * Add hack to support thin packs duing fetch(), albeit while requiring the
+    entire pack file to be loaded into memory. (jsbain)
+
  CHANGES
 
   * This will be the last release to support Python 2.6.

+ 2 - 0
dulwich/client.py

@@ -234,6 +234,8 @@ class GitClient(object):
         if determine_wants is None:
             determine_wants = target.object_store.determine_wants_all
         if CAPABILITY_THIN_PACK in self._fetch_capabilities:
+           # TODO(jelmer): Avoid reading entire file into memory and
+           # only processing it after the whole file has been fetched.
            f = BytesIO()
            def commit():
               if f.tell():