Performance problems while getting all dirs from a repository
Hello all,
to get all directories from a repository I use the following code:
public List getReposTree() throws DataProviderException {
SVNLogClient logClient = new SVNLogClient(this.repository.getAuthenticationManager(), new DefaultSVNOptions());
final List<SVNDirEntry> entries = new LinkedList();
try {
logClient.doList(this.repository.getLocation(), SVNRevision.HEAD, SVNRevision.HEAD,
false,
true, new ISVNDirEntryHandler() {
public void handleDirEntry(SVNDirEntry entry) throws SVNException {
entries.add(entry);
}
});
} catch (SVNException e) {
e.printStackTrace();
}
return entries;
}
Is there a way to speed up this function?
At the moment my repository is not very big, but this function needs 5 seconds to finish.
Thanks for any help,
Sandro Frenzel