[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: [Subclipse-dev] Help needed - Subclipse performance problem

From: Brock Janiczak <brockj_at_tpg.com.au>
Date: 2006-02-17 10:34:27 CET

Mark,
How many directories where there? There should only be one entry per
directory in that map. I would have expected the LinkedHashSet to work
with at least hundreds of entries. Perhaps the solution is as simple as
checking if the entry exists in the set before adding?

cheers,
Brock

Mark Phippard wrote:
> A colleague of mine discovered a problem in Subclipse when committing (in
> this case adding) thousands of files in one commit. The behavior is that
> it would run for hours and never even get to the point of sending the
> commit to the server. It was still outputting the Adding ... messages to
> the console. Over time, it takes longer and longer for each adding
> message to the console.
>
> Doing the commit via the command line the whole thing finishes in about 10
> minutes.
>
> Looking at our code it looks like this is caused by our notification
> handling, and as near as I can tell would have always been in Subclipse.
> This is not a new problem. What I see is that we are collecting the items
> that commit is notifying us about in a Set, specifically a LinkedHashSet.
> This is so that when the commit is finished we can then process this Set
> and notify Eclipse that all of these items have been committed.
>
> So the problem must be in the scalability of the LinkedHashSet. Eventually
> the JVM runs out of memory and crashes, or at a minimum it gets
> progressively slower in adding the items to the Set.
>
> Ideally someone could point me to a more efficient class we could use that
> would be capable of scaling up to hold thousands of IResource objects
> without crashing the JVM.
>
> I am looking at the OperationManager class in the core plug-in.
>
> Thanks
>
> Mark
>
>
>
>
>
>
>
>
> _____________________________________________________________________________
> Scanned for SoftLanding Systems, Inc. and SoftLanding Europe Plc by IBM Email Security Management Services powered by MessageLabs.
> _____________________________________________________________________________
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@subclipse.tigris.org
> For additional commands, e-mail: dev-help@subclipse.tigris.org
>
>
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subclipse.tigris.org
For additional commands, e-mail: dev-help@subclipse.tigris.org
Received on Fri Feb 17 10:39:50 2006

This is an archived mail posted to the Subclipse Dev mailing list.