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

Re: What's in git.git (stable)

From
APAndy Parkins <andyparkins@gmail.com>
Date
Dec 14, 2006, 12:00 UTC
Message-ID
<200612141200.42875.andyparkins@gmail.com>
In-Reply-To
<Pine.LNX.4.63.0612141224330.3635@wbgn013.biozentrum.uni-wuerzburg.de>
On Thursday 2006 December 14 11:27, Johannes Schindelin wrote:
Show 5 quoted lines
> And now you know one of the reasons we have no true progress bar.
>
> Another reason is that it would be relatively expensive to calculate,
> since the total _size_ is not known beforehand (remember, the pack is
> calculated on the fly).

Hmmm; just thinking out loud now... I used to calculate ETA's for simulations I ran that had similar problems - i.e. you don't know how long it takes until its done (it was with genetic programming function trees, and of course you don't know what operations will be in the next generations tree, so you can't estimate a time). I just showed "something" by doing a standard: how long did n/N take therefore N will take... then I plotted the error in the ETA after the simulation completed. Interestingly it was always a -exp(-x) shape. In other words it got more accurate towards the end (of course); which is exactly the sort of accuracy you would want. At the beginning you just want a broad "this will take a few hours" measure. Towards the end, you want to know "there is 1m50s remaining".

I wonder if the number of objects is a reasonable measure of progress. Let's say we're transferring 100,000 objects. Let's also say that the average size of objects is 100 bytes. Let's finally say that the object sizes are evenly distributed throughout the 100,000 objects. This would mean that the first 1,000 objects are just as representative as the last 1,000 objects; or any other randomly chosen 1,000 objects. In which case, the size of the first thousand objects would be approximately one hundredth the size of the total transfer. Volia: an estimate of the total size of the transfer.

Obviously this estimate would be continuously updated, and would become more accurate as more objects are transferred. The data rate would of course be based on only the previous X objects rather than the total transferred to take account of changing server conditions. From these ETA could be estimated.

Obviously the ETA is unstable, but it's only for giving users an idea of how long is left; not for strict accounting.

Andy
-- 
Dr Andy Parkins, M Eng (hons), MIEE
Previous: Johannes SchindelinNext: Shawn Pearce
Message 75 of 102 in “What's in git.git (stable)”
  1. Junio C HamanoDec 13, 2006
  2. Andy ParkinsDec 13, 2006
  3. Jakub NarebskiDec 13, 2006
  4. Andy ParkinsDec 14, 2006
  5. Shawn PearceDec 14, 2006
  6. Andy ParkinsDec 14, 2006
  7. Nicolas PitreDec 14, 2006
  8. Jakub NarebskiDec 15, 2006
  9. Junio C HamanoDec 13, 2006
  10. Peter BaumannDec 13, 2006
  11. Johannes SchindelinDec 14, 2006
  12. Nicolas PitreDec 14, 2006
  13. Junio C HamanoDec 14, 2006
  14. git-show, was Re: What's in git.git (stable)Johannes Schindelin, Dec 14, 2006
  15. Junio C HamanoDec 14, 2006
  16. Johannes SchindelinDec 14, 2006
  17. Andreas EricssonDec 14, 2006
  18. Jakub NarebskiDec 15, 2006
  19. Andy ParkinsDec 14, 2006
  20. Junio C HamanoDec 14, 2006
  21. Andy ParkinsDec 14, 2006
  22. Shawn PearceDec 14, 2006
  23. Carl WorthDec 14, 2006
  24. Shawn PearceDec 14, 2006
  25. reflog by default?, was Re: What's in git.git (stable)Johannes Schindelin, Dec 14, 2006
  26. Nicolas PitreDec 14, 2006
  27. Junio C HamanoDec 14, 2006
  28. Shawn PearceDec 14, 2006
  29. Nicolas PitreDec 14, 2006
  30. Andreas EricssonDec 14, 2006
  31. Junio C HamanoDec 15, 2006
  32. Shawn PearceDec 16, 2006
  33. Nicolas PitreDec 14, 2006
  34. Junio C HamanoDec 14, 2006
  35. Enable reflogs by default in all repositories.Shawn O. Pearce, Dec 14, 2006
  36. Nicolas PitreDec 14, 2006
  37. Junio C HamanoDec 14, 2006
  38. Andy ParkinsDec 14, 2006
  39. Jakub NarebskiDec 15, 2006
  40. Jakub NarebskiDec 15, 2006
  41. Nicolas PitreDec 15, 2006
  42. Andreas EricssonDec 15, 2006
  43. Nicolas PitreDec 15, 2006
  44. Shawn PearceDec 15, 2006
  45. Andreas EricssonDec 15, 2006
  46. Johannes SchindelinDec 15, 2006
  47. Nicolas PitreDec 15, 2006
  48. make commit message a little more consistent and confortingNicolas Pitre, Dec 15, 2006
  49. Shawn PearceDec 15, 2006
  50. Andreas EricssonDec 15, 2006
  51. Shawn PearceDec 15, 2006
  52. Andreas EricssonDec 15, 2006
  53. Shawn PearceDec 15, 2006
  54. Andreas EricssonDec 15, 2006
  55. Nicolas PitreDec 15, 2006
  56. Junio C HamanoDec 15, 2006
  57. Nicolas PitreDec 15, 2006
  58. Shawn PearceDec 15, 2006
  59. Junio C HamanoDec 15, 2006
  60. Nicolas PitreDec 15, 2006
  61. Junio C HamanoDec 16, 2006
  62. Junio C HamanoDec 14, 2006
  63. Andy ParkinsDec 14, 2006
  64. Junio C HamanoDec 14, 2006
  65. Andy ParkinsDec 15, 2006
  66. Raimund BauerDec 15, 2006
  67. Junio C HamanoDec 15, 2006
  68. Carl WorthDec 15, 2006
  69. Johannes SchindelinDec 14, 2006
  70. Johannes SchindelinDec 14, 2006
  71. Andy ParkinsDec 14, 2006
  72. Johannes SchindelinDec 14, 2006
  73. Andy ParkinsDec 14, 2006
  74. Johannes SchindelinDec 14, 2006
  75. Andy ParkinsDec 14, 2006
  76. Shawn PearceDec 14, 2006
  77. Andy ParkinsDec 14, 2006
  78. Nicolas PitreDec 14, 2006
  79. Andy ParkinsDec 14, 2006
  80. Shawn PearceDec 14, 2006
  81. Jakub NarebskiDec 15, 2006
  82. Junio C HamanoDec 15, 2006
  83. Jakub NarebskiDec 15, 2006
  84. Johannes SchindelinDec 15, 2006
  85. Junio C HamanoDec 15, 2006
  86. Johannes SchindelinDec 16, 2006
  87. Junio C HamanoDec 16, 2006
  88. Steven GrimmDec 16, 2006
  89. Junio C HamanoDec 16, 2006
  90. Junio C HamanoDec 15, 2006
  91. git-clone: use wildcard specification for tracking branchesJunio C Hamano, Dec 16, 2006
  92. git-pull: refuse default merge without branch.*.mergeJunio C Hamano, Dec 16, 2006
  93. git-clone: lose the artificial "first" fetch refspecJunio C Hamano, Dec 16, 2006
  94. git-clone: lose the traditional 'no-separate-remote' layoutJunio C Hamano, Dec 16, 2006
  95. Linus TorvaldsDec 16, 2006
  96. Johannes SchindelinDec 16, 2006
  97. Linus TorvaldsDec 16, 2006
  98. Jakub NarebskiDec 16, 2006
  99. Junio C HamanoDec 16, 2006
  100. Document git-merge-fileJohannes Schindelin, Dec 16, 2006
  101. Jakub NarebskiDec 16, 2006
  102. Junio C HamanoDec 16, 2006

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.