git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [GIT PATCH] I2C and W1 bugfixes for 2.6.12-rc2

From
SCSteven Cole <elenstev@mesatop.com>
Date
Apr 19, 2005, 23:41 UTC
Message-ID
<200504191741.57626.elenstev@mesatop.com>
In-Reply-To
<Pine.LNX.4.58.0504191627420.2274@ppc970.osdl.org>
On Tuesday 19 April 2005 05:38 pm, Linus Torvalds wrote:
Show 32 quoted lines
> 
> On Tue, 19 Apr 2005, Steven Cole wrote:
> > 
> > I wasn't complaining about the 4 minutes, just the lack of feedback
> > during the majority of that time.  And most of it was after the last
> > patching file message.
> 
> That should be exactly the thing that the new "read-tree -m" fixes.
> 
> Before, when you read in a new tree (which is what you do when you update
> to somebody elses version), git would throw all the cached information
> away, and so you'd end up doing a "checkout-cache -f -a" that re-wrote
> every single checked-out file, followed by "update-cache --refresh" that
> then re-created the cache for every single file.
> 
> With the new read-tree, the same sequence (assuming you have the "-m"  
> flag to tell read-tree to merge the cache information) will now only write
> out and re-check the files that actually changed due to the update or
> merge.
> 
> So that last phase should go from minutes to seconds - instead of checking
> 17,000+ files, you'd end up checking maybe a few hundred for most "normal"
> updates.
> 
> For example, updating all the way from the git root (ie plain 2.6.12-rc2)  
> to the current head, only 577 files have changed, and the rest (16,740)
> should never be touched at all.
> 
> You can see why doing just the 577 instead of the full 17,317 might speed
> things up a bit ;)
> 
> 		Linus
Cool.  Petr, I hope this works like this with your tools tomorrow.
Show 6 quoted lines
> 
> PS. Of course, right now it probably does make sense to waste some time
> occasionally, and run "fsck-cache $(cat .git/HEAD)" every once in a while.
> Just in case..
> 
> 
Sounds like a good thing to schedule for $WEEHOUR.
Steven
Previous: Linus TorvaldsNext: Zlatko Calusic
Message 28 of 30 in “I2C and W1 bugfixes for 2.6.12-rc2”
  1. I2C and W1 bugfixes for 2.6.12-rc2Greg KH, Apr 19, 2005
  2. Greg KHApr 19, 2005
  3. Linus TorvaldsApr 19, 2005
  4. Greg KHApr 19, 2005
  5. Linus TorvaldsApr 19, 2005
  6. Greg KHApr 19, 2005
  7. Linus TorvaldsApr 19, 2005
  8. Daniel JacobowitzApr 19, 2005
  9. Greg KHApr 19, 2005
  10. Kenneth JohanssonApr 19, 2005
  11. Linus TorvaldsApr 19, 2005
  12. Martin SchlemmerApr 19, 2005
  13. Linus TorvaldsApr 19, 2005
  14. Martin SchlemmerApr 19, 2005
  15. Jan-Benedict GlawApr 20, 2005
  16. Lars FennebergApr 19, 2005
  17. Petr BaudisApr 19, 2005
  18. Linus TorvaldsApr 19, 2005
  19. Steven ColeApr 19, 2005
  20. Petr BaudisApr 19, 2005
  21. Junio C HamanoApr 19, 2005
  22. Petr BaudisApr 19, 2005
  23. Linus TorvaldsApr 19, 2005
  24. Petr BaudisApr 19, 2005
  25. Steven ColeApr 19, 2005
  26. Petr BaudisApr 19, 2005
  27. Linus TorvaldsApr 19, 2005
  28. Steven ColeApr 19, 2005
  29. Zlatko CalusicApr 20, 2005
  30. Linus TorvaldsApr 20, 2005

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.