jelmer / dulwich

Pure-Python Git implementation
https://www.dulwich.io/
Other
2.04k stars 391 forks source link

Support for garbage collection #92

Open jimjkelly opened 11 years ago

jimjkelly commented 11 years ago

is there currently support for prompting garbage collection? I'm not seeing anything poking through the docs and the source. If not, could you consider this a feature request?

thanks so much for a great library!

jelmer commented 11 years ago

On Sat, May 18, 2013 at 02:15:31PM -0700, Jim Kelly wrote:

is there currently support for prompting garbage collection? I'm not seeing anything poking through the docs and the source. If not, could you consider this a feature request? What do you mean with "prompting garbage collection" ? Having .close methods on objects?

Cheers,

Jelmer

jimjkelly commented 11 years ago

The equivalent of 'git gc' on the repo.

jelmer commented 11 years ago

Ah, of course. My first thought was of Python GC for some reason, hence my confusion. :-)

There is indeed no support for Git GC at the moment; it'd be great if we can add it. PackObjectStore would be the location for such support.

jimjkelly commented 11 years ago

After I hit send on my original comment, I thought, "I wonder if my comment will be mistaken for garbage collection in python. :) Sorry, I should have been more clear. I'm currently evaluating using git for a project (where garbage collection will be important). If I end up using it maybe I can whip something up and submit a pull request.

danchr commented 3 months ago

Discussion https://github.com/jelmer/dulwich/discussions/1324 is relevant to this 🙂

danchr commented 3 months ago

There is indeed no support for Git GC at the moment; it'd be great if we can add it. PackObjectStore would be the location for such support.

Given how complicated proper GC likely is, it might make sense as a separate module, in my opinion.