Skip to content

Clean filter is too slow #1301

Closed
Closed

Description

@lcsthom

I can't stage 4000 files (500MB total) on a windows seven / git lfs 1.2.0 / git 2.8.1 x64 / with SSD and 16Gb RAM.

It seems the filter is not parallelized.

Activity

  1. lcsthom commented on Jun 13, 2016

    @lcsthom
    Author

    In fact it succeeded but this is really slow (hours) to get rid of it. I know we can fasten smudge operations by disabling it and use git lfs pull instead. Is there a way to do the same for the clean operation?

  2. ttaylorr commented on Jun 16, 2016

    @ttaylorr
    Contributor

    Hi @lcsthom, thanks for opening this issue. The clean filter is not currently parallelizable in the latest version of Git. You may be able to speed things up a bit by trying @sinbad's idea as mentioned here.

    Let me know if that speeds things up for you 😄

  3. lcsthom commented on Jun 17, 2016

    @lcsthom
    Author

    Thanks for your reply but I can't do that, I count 200 users in my team and they should not be custumizing their gitconfig manually. Or we are gonna get too much trouble. By the way, it only hides the real matter ... And I also expected smudge to be quite fast but it is even slower.
    The only way to be acceptable would be to zip the files in one and only one big file. But I think something else must be done.

  4. ttaylorr commented on Jul 2, 2018

    @ttaylorr
    Contributor

    Hi @lcsthom, I'm circling back to old issues that can be closed. The clean and smudge filters are both much faster in modern versions of Git LFS and Git, because of the process filter, which eliminates the overhead of spawning many processes.

    Can you give it a shot with that and let me know if we need to debug further?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions