]> source.dussan.org Git - jgit.git/commit
Index config section and subsection names in one pass 87/5487/2
authorShawn O. Pearce <spearce@spearce.org>
Tue, 27 Mar 2012 19:32:16 +0000 (15:32 -0400)
committerShawn O. Pearce <spearce@spearce.org>
Mon, 2 Apr 2012 18:44:45 +0000 (11:44 -0700)
commitc0b1443926b001db2620b65103e4526b955a0897
tree9fee5de71ee7b98662c2a230ad6967a3dcd99194
parent2ba67bedaebc1df9e891d701aa46bde753924a64
Index config section and subsection names in one pass

Instead of indexing the subsection names on each request for a given
section name, index both the section and subsection names in a single
scan through the entry list. This should improve lookup time for
reading the section names out of the configuration, especially for the
url.*.insteadof type of processing performed in RemoteConfig.

Change-Id: I7b3269565b1308f69d20dc3f3fe917aea00f8a73
org.eclipse.jgit.test/tst/org/eclipse/jgit/lib/ConfigTest.java
org.eclipse.jgit/src/org/eclipse/jgit/lib/Config.java
org.eclipse.jgit/src/org/eclipse/jgit/lib/ConfigSnapshot.java