Simplify RawParseUtils next and nextLF loops
commit2df637aff9d6fa249f9641b198f34db931d13983
authorShawn O. Pearce <spearce@spearce.org>
Wed, 10 Dec 2008 22:05:47 +0000 (10 14:05 -0800)
committerRobin Rosenberg <robin.rosenberg@dewire.com>
Sat, 13 Dec 2008 02:13:24 +0000 (13 03:13 +0100)
tree33e8fd1a4bf17aa18e45d5012a0ab8f743ac8749
parent823dada255658917cd01486f2dc87e936dff5c50
Simplify RawParseUtils next and nextLF loops

We always need ptr + 1 after we read the current position,
so we might as well do the much more common foo[ptr++]. A
good JIT would be more likely to optimize this case over
the weird else branch we had.

Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Signed-off-by: Robin Rosenberg <robin.rosenberg@dewire.com>
org.spearce.jgit/src/org/spearce/jgit/util/RawParseUtils.java