DESCRIPTION

Improve performance of SelectionUtils.getRepository()

Instead of converting selected elements to an IPath location always
and then using RepositoryMapping.getRepository(IPath), try to keep as
much info as needed and as possible: if the selection contains
IResources, use their projects and the much more efficient
RepositoryMApping.getRepository(IProject).

In my tests on a test workspace with 46 open projects and the git
toolbar and global menu enabled, this results in a speedup of the
SelectionUtils.getRepository(IStructuredSelection) operation by a
factor of 10 to 20 in most cases.

Bug: 486857
Change-Id: Ied35b304c8496c501dbf8109e1c8d5403b962efb
Signed-off-by: Alayna Houston xxx@xxx.xxx

COMMENTS

author: Alayna Houston
date: 2016-01-30 15:48:06.000000000

Uploaded patch set 3.

-------------------------------------
author: Brenden Conley
date: 2016-01-30 15:48:12.000000000

Patch Set 3:

Build Started https://hudson.eclipse.org/egit/job/egit.gerrit/8091/

-------------------------------------
author: Brenden Conley
date: 2016-01-30 16:12:33.000000000

Patch Set 3: Verified+1

Build Successful 

https://hudson.eclipse.org/egit/job/egit.gerrit/8091/ : SUCCESS

-------------------------------------
author: Gerrit Johnathan Pham
date: 2016-02-20 09:41:41.000000000

Change has been successfully merged into the git repository by Douglas Trujillo

-------------------------------------
