[mkgmap-dev] [PATCH 13/14] Write the char directly into the buffer, we know its long enough already.
From Jeffrey C. Ollie jeff at ocjtech.us on Thu Sep 9 21:12:13 BST 2010
From: Scott Crosby <scrosby at cs.rice.edu> --- src/uk/me/parabola/splitter/OSMWriter.java | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/src/uk/me/parabola/splitter/OSMWriter.java b/src/uk/me/parabola/splitter/OSMWriter.java index c42ce52..350661c 100644 --- a/src/uk/me/parabola/splitter/OSMWriter.java +++ b/src/uk/me/parabola/splitter/OSMWriter.java @@ -227,7 +227,7 @@ public class OSMWriter { writeString(numberFormat.format(value)); else { if (value < 0) { - writeChar('-'); + charBuf[index++] = '-'; // Write directly. value = -value; } -- 1.7.2.3
- Previous message: [mkgmap-dev] [PATCH 12/14] Add in some specialcase serialization code for a 15-30% speedup.
- Next message: [mkgmap-dev] [PATCH 14/14] New thread design.
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the mkgmap-dev mailing list