Skip to content

Commit d0318a6

Browse files
authored
Merge pull request #2115 from mvanhorn/docs/gitdb-performance-warning
docs: warn about GitDB performance with large commits
2 parents ddca0b3 + 859ea95 commit d0318a6

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

doc/source/tutorial.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -513,6 +513,12 @@ The GitDB is a pure-python implementation of the git object database. It is the
513513

514514
repo = Repo("path/to/repo", odbt=GitDB)
515515

516+
.. warning::
517+
``GitDB`` may fail or become extremely slow when traversing trees in
518+
repositories with very large commits (thousands of changed files in a
519+
single commit). If you encounter ``RecursionError`` or excessive
520+
slowness during tree traversal, switch to ``GitCmdObjectDB`` instead.
521+
516522

517523
GitCmdObjectDB
518524
==============

0 commit comments

Comments
 (0)