Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

committing a one line staged change takes 3 minutes on Oppo Reno 4 Pro 5G 12G RAM #732

Open
prahal opened this issue Dec 21, 2024 · 1 comment
Assignees

Comments

@prahal
Copy link

prahal commented Dec 21, 2024

Describe the bug
I have a Zim notebook with years of commits that I edit and commit to on Android from MGit. When I add a short line or anything else, staging it takes secondes but committing this diff takes more than 3 minutes (pushing to my remote git repository afterwards is a matters of seconds).

To Reproduce
Steps to reproduce the behavior:

  1. Edit a text file in an MGit managed repository (I believe with a lot of commits and/or big in size a few GigaBytes). My local Git clone is 2.24GB on the phone (I believe it includes the .git folder). But a lot of small commits. All ops are very fast on computer with git cli command.
  2. Stage the file I edited in MGit
  3. Commit the staged data with MGit menu item
  4. It takes more than 3 minutes to shows up in the MGit commits list and as far as I know MGit refuses to do any other operation until this commit completes.

Expected behavior
Commit complète in ten seconds or less like with git console on Debian.

Smartphone (please complete the following information):

  • Device: Oppo Reno 4 Pro 5G
  • OS: Android 12
  • App Version 1.7.0 from F-Droid

Additional context
I have adb. Please tell me how to proceed if you need data I can acquire this way.

@maks
Copy link
Owner

maks commented Dec 23, 2024

Unfortunately I dont think anything can be done here due to the way JGit, the underlying library used in MGit works. Actually I'm surprised you were even able to clone such as a large repo to the restriction of JGit not using streaming to uncompress deltas during a clone/fetch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants