You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

org.eclipse.jgit.pgm.TextBuiltin 1.8KB

debug-diff-algorithms: Real world performance test implementations When working on a difference algorithm's implementation, its generally more important to care about how it behaves on real-world inputs than it does on fake inputs created for unit test cases. Run each implementation against a number of real-world repositories, looking at changes between files in each commit. This gives a better picture of how a particular algorithm performs. This test suite run against JGit and linux-2.6 with the current available algorithms shows HistogramDiff always out-performs MyersDiff, and by a wide margin on the linux-2.6 sources. As HistogramDiff has similar output properties as PatienceDiff, the resulting edits are probably also more human-readable. These test results show that HistogramDiff is a good choice for the default implementation, and also show that PatienceDiff isn't worth keeping. jgit: start at baa83ae 2686 files, 760 commits N= 3 min lines, 3016 max lines Algorithm Time(ns) ( Time(ns) on Time(ns) on ) ( N=3 N=3016 ) --------------------------------------------------------------------- histogram_myers 314652100 ( 3900 298100 ) histogram 315973000 ( 3800 302100 ) patience 774724900 ( 4500 347900 ) patience_histogram_myers 786332800 ( 3700 351200 ) myers 819359300 ( 4100 379100 ) patience_myers 843416700 ( 3800 348000 ) linux-2.6.git: start at 85a3318 4001 files, 2680 commits N= 2 min lines, 39098 max lines Algorithm Time(ns) ( Time(ns) on Time(ns) on ) ( N=2 N=39098 ) --------------------------------------------------------------------- histogram_myers 1229870000 ( 5900 2642700 ) histogram 1235654100 ( 6000 2695400 ) patience 3856546000 ( 5900 2627700 ) patience_histogram_myers 3866728100 ( 7000 2624000 ) patience_myers 4004875300 ( 8000 2651700 ) myers 9794679000 ( 7200 2716200 ) Change-Id: I2502684d31f7851e720356820d04d8cf767f7229 Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
13 years ago
Support LFS protocol and a file system based LFS storage Implement LfsProtocolServlet handling the "Git LFS v1 Batch API" protocol [1]. Add a simple file system based LFS content store and the debug-lfs-store command to simplify testing. Introduce a LargeFileRepository interface to enable additional storage implementation while reusing the same protocol implementation. At the client side we have to configure the lfs.url, specify that we use the batch API and we don't use authentication: [lfs] url = http://host:port/lfs batch = true [lfs "http://host:port/lfs"] access = none the git-lfs client appends the "objects/batch" to the lfs.url. Hard code an Authorization header in the FileLfsRepository.getAction because then git-lfs client will skip asking for credentials. It will just forward the Authorization header from the response to the download/upload request. The FileLfsServlet supports file content storage for "Large File Storage" (LFS) server as defined by the Github LFS API [2]. - upload and download of large files is probably network bound hence use an asynchronous servlet for good scalability - simple object storage in file system with 2 level fan-out - use LockFile to protect writing large objects against multiple concurrent uploads of the same object - to prevent corrupt uploads the uploaded file is rejected if its hash doesn't match id given in URL The debug-lfs-store command is used to run the LfsProtocolServlet and, optionally, the FileLfsServlet which makes it easier to setup a local test server. [1] https://github.com/github/git-lfs/blob/master/docs/api/http-v1-batch.md [2] https://github.com/github/git-lfs/tree/master/docs/api Bug: 472961 Change-Id: I7378da5575159d2195138d799704880c5c82d5f3 Signed-off-by: Matthias Sohn <matthias.sohn@sap.com> Signed-off-by: Sasa Zivkov <sasa.zivkov@sap.com>
8 years ago
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. org.eclipse.jgit.pgm.Add
  2. org.eclipse.jgit.pgm.AmazonS3Client
  3. org.eclipse.jgit.pgm.Archive
  4. org.eclipse.jgit.pgm.Blame
  5. org.eclipse.jgit.pgm.Branch
  6. org.eclipse.jgit.pgm.Checkout
  7. org.eclipse.jgit.pgm.Clean
  8. org.eclipse.jgit.pgm.Clone
  9. org.eclipse.jgit.pgm.Commit
  10. org.eclipse.jgit.pgm.Config
  11. org.eclipse.jgit.pgm.ConvertRefStorage
  12. org.eclipse.jgit.pgm.Daemon
  13. org.eclipse.jgit.pgm.Describe
  14. org.eclipse.jgit.pgm.Diff
  15. org.eclipse.jgit.pgm.DiffTree
  16. org.eclipse.jgit.pgm.Fetch
  17. org.eclipse.jgit.pgm.Gc
  18. org.eclipse.jgit.pgm.Glog
  19. org.eclipse.jgit.pgm.IndexPack
  20. org.eclipse.jgit.pgm.Init
  21. org.eclipse.jgit.pgm.Log
  22. org.eclipse.jgit.pgm.LsFiles
  23. org.eclipse.jgit.pgm.LsRemote
  24. org.eclipse.jgit.pgm.LsTree
  25. org.eclipse.jgit.pgm.Merge
  26. org.eclipse.jgit.pgm.MergeBase
  27. org.eclipse.jgit.pgm.Push
  28. org.eclipse.jgit.pgm.ReceivePack
  29. org.eclipse.jgit.pgm.Reflog
  30. org.eclipse.jgit.pgm.Remote
  31. org.eclipse.jgit.pgm.RemoteHelper
  32. org.eclipse.jgit.pgm.Repo
  33. org.eclipse.jgit.pgm.Reset
  34. org.eclipse.jgit.pgm.RevList
  35. org.eclipse.jgit.pgm.RevParse
  36. org.eclipse.jgit.pgm.Rm
  37. org.eclipse.jgit.pgm.Show
  38. org.eclipse.jgit.pgm.ShowRef
  39. org.eclipse.jgit.pgm.Status
  40. org.eclipse.jgit.pgm.Tag
  41. org.eclipse.jgit.pgm.UploadPack
  42. org.eclipse.jgit.pgm.Version
  43. org.eclipse.jgit.pgm.debug.BenchmarkReftable
  44. org.eclipse.jgit.pgm.debug.DiffAlgorithms
  45. org.eclipse.jgit.pgm.debug.LfsStore
  46. org.eclipse.jgit.pgm.debug.MakeCacheTree
  47. org.eclipse.jgit.pgm.debug.ReadDirCache
  48. org.eclipse.jgit.pgm.debug.ReadReftable
  49. org.eclipse.jgit.pgm.debug.RebuildCommitGraph
  50. org.eclipse.jgit.pgm.debug.ShowCacheTree
  51. org.eclipse.jgit.pgm.debug.ShowCommands
  52. org.eclipse.jgit.pgm.debug.ShowDirCache
  53. org.eclipse.jgit.pgm.debug.ShowPackDelta
  54. org.eclipse.jgit.pgm.debug.TextHashFunctions
  55. org.eclipse.jgit.pgm.debug.VerifyReftable
  56. org.eclipse.jgit.pgm.debug.WriteReftable
  57. org.eclipse.jgit.pgm.debug.WriteReftable