* slowness in pulling data to mobile devices using git
@ 2011-04-21 22:56 Qianqian Fang
2011-04-22 3:41 ` Nicolas Pitre
0 siblings, 1 reply; 2+ messages in thread
From: Qianqian Fang @ 2011-04-21 22:56 UTC (permalink / raw)
To: git
hi list
I am not sure if this is the right place to ask. I am having
some difficulties to speed up synchronization of a large git
repo (~4GB) to a mobile phone via USB cable. It appears that
the "git pull" command has to read through the entire
history to make a single update, even the update is very
minor.
I post my full question at this link:
http://groups.google.com/group/git-users/browse_thread/thread/9f33536257535b28?hl=en
does this make sense? is there a way to speed up
the updating without letting git to do all the file readings?
thanks
Qianqian
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: slowness in pulling data to mobile devices using git
2011-04-21 22:56 slowness in pulling data to mobile devices using git Qianqian Fang
@ 2011-04-22 3:41 ` Nicolas Pitre
0 siblings, 0 replies; 2+ messages in thread
From: Nicolas Pitre @ 2011-04-22 3:41 UTC (permalink / raw)
To: Qianqian Fang; +Cc: git
On Thu, 21 Apr 2011, Qianqian Fang wrote:
> hi list
>
> I am not sure if this is the right place to ask.
Yes, it is.
> I am having some difficulties to speed up synchronization of a large
> git repo (~4GB) to a mobile phone via USB cable. It appears that the
> "git pull" command has to read through the entire history to make a
> single update, even the update is very minor.
>
> I post my full question at this link:
>
> http://groups.google.com/group/git-users/browse_thread/thread/9f33536257535b28?hl=en
>
> does this make sense? is there a way to speed up
> the updating without letting git to do all the file readings?
try doing "git fetch" instead of "git pull". That should make the
actual transfer faster without looking at the local checked-out files.
Also, make sure the repository on your SD card is fully packed. You'll
need to repack it by mounting the SD card on a PC with sufficient amount
of RAM.
If the repo is checked out on your SD card, and if it contains a large
number of files, then any status-like operation (checkout, pull) will
need to stat every file which may take time on a slow storage link.
And if your phone changes the dates of those files then Git has no
choice but to read the entire file in order to determine if the file is
still the same or not.
Nicolas
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-04-22 3:42 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-04-21 22:56 slowness in pulling data to mobile devices using git Qianqian Fang
2011-04-22 3:41 ` Nicolas Pitre
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.