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

[Subclipse-dev] appendPath inefficiency in SVNUrl.java

From: <biczok_at_freemail.hu>
Date: Mon, 5 Jan 2009 07:14:44 -0800 (PST)

It seems to me that appendPath() unnecessarily creates a new String array when the first element of segmentsToAdd is empty (the string starts with a "/").
Simply using a start index would be enough in this case.

I attached a patch file with my changes.
(I hope I did the right thing, this is my first post using this forum)

Cheers,

Laca

------------------------------------------------------
http://subclipse.tigris.org/ds/viewMessage.do?dsForumId=1043&dsMessageId=1005402

To unsubscribe from this discussion, e-mail: [dev-unsubscribe_at_subclipse.tigris.org].

Received on 2009-01-05 16:16:16 CET

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

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.