Hello Sandro,
Using low-level API (SVNRepository) and in particular
SVNRepository.status method with custom ISVNEditor implementation would
let you get the whole repository tree faster, comparing to doList(...) call.
See
https://wiki.svnkit.com/Recursively%20fetching%20properties%20from%20a%20repository%20(low-level%20API)
for details. Article tells about fetching properties, but as you'll see
repository tree is received at the same time.
Alexander Kitaev,
TMate Software,
http://svnkit.com/ - Java [Sub]Versioning Library!
Sandro F wrote:
> 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 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
> ------------------------------------------------------------------------
> View this message in context: Performance problems while getting all
> dirs from a repository
> <
http://www.nabble.com/Performance-problems-while-getting-all-dirs-from-a-repository-tp24198126p24198126.html>
> Sent from the SVNKit - Users mailing list archive
> <
http://www.nabble.com/SVNKit---Users-f18684.html> at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail:
svnkit-users-unsubscribe@...
For additional commands, e-mail:
svnkit-users-help@...