Skip to main content



      Home
Home » Eclipse Projects » EGit / JGit » performance improvement to get stats
performance improvement to get stats [message #1845052] Mon, 04 October 2021 12:48
Eclipse UserFriend
Is there is a better way to improve the perfomance of these method calls?
var GitAPI = createObject( 'java', 'org.eclipse.jgit.api.Git' );
var git = GitAPI.open( createObject( 'java', 'java.io.File' ).init( repoPath ) );

// Now, on to the slower stuff.
var repoStatus = git.status().call();
var hasAdded = arrayLen( repoStatus.getAdded() );
var hasMissing = arrayLen( repoStatus.getMissing() );
var hasRemoved = arrayLen( repoStatus.getRemoved() );
var hasUntracked = arrayLen( repoStatus.getUntracked() );
Previous Topic:How can google gerrit project to be clone so fast?
Next Topic:Reproduction of CI Build
Goto Forum:
  


Current Time: Thu May 22 00:25:47 EDT 2025

Powered by FUDForum. Page generated in 0.07486 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top