Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EGit / JGit » performance improvement to get stats
performance improvement to get stats [message #1845052] Mon, 04 October 2021 16:48
Daniel Mejia is currently offline Daniel MejiaFriend
Messages: 1
Registered: October 2021
Junior Member
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:Sparse Checkout support
Next Topic:Reproduction of CI Build
Goto Forum:
  


Current Time: Mon Sep 26 10:34:43 GMT 2022

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

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

Back to the top