git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
* git-p4.py caching
@ 2017-02-14 18:16 Martin-Louis Bright
  2017-02-15 13:10 ` Lars Schneider
  0 siblings, 1 reply; 2+ messages in thread
From: Martin-Louis Bright @ 2017-02-14 18:16 UTC (permalink / raw)
  To: git

hi!

I am using git-p4.py to migrate a lot of medium and large Perforce
depots into git. I almost exclusively go one way: from Perforce to
git. I also frequently re-clone/re-migrate as the Perforce migration
client spec is refined.

For this, I have added rudimentary caching in git-p4.py so that
Perforce requests are not repeated over the network.

I have it working and tested on a ~150MB repo and the migration time was halved.

Is this something that would be of interest to the larger community?

--Martin

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: git-p4.py caching
  2017-02-14 18:16 git-p4.py caching Martin-Louis Bright
@ 2017-02-15 13:10 ` Lars Schneider
  0 siblings, 0 replies; 2+ messages in thread
From: Lars Schneider @ 2017-02-15 13:10 UTC (permalink / raw)
  To: Martin-Louis Bright; +Cc: Git List, Luke Diamand, George Vanburgh


> On 14 Feb 2017, at 19:16, Martin-Louis Bright <mlbright@gmail.com> wrote:

[CC'ing Luke and George] 


> hi!
> 
> I am using git-p4.py to migrate a lot of medium and large Perforce
> depots into git. I almost exclusively go one way: from Perforce to
> git. I also frequently re-clone/re-migrate as the Perforce migration
> client spec is refined.
> 
> For this, I have added rudimentary caching in git-p4.py so that
> Perforce requests are not repeated over the network.

Martin implemented an on disk cache and "requests not repeated" applies 
mostly for re-migrations. Re-migrations are multiple test migrations ("git-p4 clone") 
with minor client spec changes until we find the right client spec for the
production migration.

> I have it working and tested on a ~150MB repo and the migration time was halved.
> 
> Is this something that would be of interest to the larger community?

I like the idea!
Disclaimer: I work together with Martin on the P4 -> Git migrations :-)

Cheers,
Lars


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-02-15 13:10 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-02-14 18:16 git-p4.py caching Martin-Louis Bright
2017-02-15 13:10 ` Lars Schneider

Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).