{"thread":{"id":"27158","subject":"slowness in pulling data to mobile devices using git","startedAt":"2011-04-21T22:56:08Z","lastAt":"2011-04-22T03:41:58Z","messageCount":2,"participants":["Qianqian Fang","Nicolas Pitre"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"166214","messageId":"4DB0B608.5090704@gmail.com","threadId":"27158","inReplyTo":null,"subject":"slowness in pulling data to mobile devices using git","fromName":"Qianqian Fang","fromEmail":"fangqq@gmail.com","sentAt":"2011-04-21T22:56:08Z","receivedAt":"2011-04-21T22:56:08Z","isPatch":false,"sender":{"key":"fangqq@gmail.com","avatar":null},"body":"hi list\n\nI am not sure if this is the right place to ask. I am having\nsome difficulties to speed up synchronization of a large git\nrepo (~4GB) to a mobile phone via USB cable. It appears that\nthe \"git pull\" command has to read through the entire\nhistory to make a single update, even the update is very\nminor.\n\nI post my full question at this link:\n\nhttp://groups.google.com/group/git-users/browse_thread/thread/9f33536257535b28?hl=en\n\ndoes this make sense? is there a way to speed up\nthe updating without letting git to do all the file readings?\n\nthanks\n\nQianqian\n"},{"id":"166217","messageId":"alpine.LFD.2.00.1104212332310.24613@xanadu.home","threadId":"27158","inReplyTo":"4DB0B608.5090704@gmail.com","subject":"Re: slowness in pulling data to mobile devices using git","fromName":"Nicolas Pitre","fromEmail":"nico@fluxnic.net","sentAt":"2011-04-22T03:41:58Z","receivedAt":"2011-04-22T03:41:58Z","isPatch":false,"sender":{"key":"nico@fluxnic.net","avatar":"https://avatars.githubusercontent.com/u/702790?v=4"},"body":"On Thu, 21 Apr 2011, Qianqian Fang wrote:\n\n> hi list\n> \n> I am not sure if this is the right place to ask.\n\nYes, it is.\n\n> I am having some difficulties to speed up synchronization of a large \n> git repo (~4GB) to a mobile phone via USB cable. It appears that the \n> \"git pull\" command has to read through the entire history to make a \n> single update, even the update is very minor.\n> \n> I post my full question at this link:\n> \n> http://groups.google.com/group/git-users/browse_thread/thread/9f33536257535b28?hl=en\n> \n> does this make sense? is there a way to speed up\n> the updating without letting git to do all the file readings?\n\ntry doing \"git fetch\" instead of \"git pull\".  That should make the \nactual transfer faster without looking at the local checked-out files.\n\nAlso, make sure the repository on your SD card is fully packed.  You'll \nneed to repack it by mounting the SD card on a PC with sufficient amount \nof RAM.\n\nIf the repo is checked out on your SD card, and if it contains a large \nnumber of files, then any status-like operation (checkout, pull) will \nneed to stat every file which may take time on a slow storage link.  \nAnd if your phone changes the dates of those files then Git has no \nchoice but to read the entire file in order to determine if the file is \nstill the same or not.\n\n\nNicolas\n"}]}