Use indexOfElement in JsonReader.

This means we don't need to re-navigate through the segments
for every single character. Should be a small performance win.
This commit is contained in:
Jesse Wilson
2014-08-10 01:04:56 -04:00
parent 12243bc6fc
commit ac1b1027f8
4 changed files with 88 additions and 115 deletions

View File

@@ -26,7 +26,7 @@
<java.version>1.6</java.version>
<!-- Dependencies -->
<okio.version>1.0.1</okio.version>
<okio.version>1.0.2-SNAPSHOT</okio.version>
<!-- Test Dependencies -->
<junit.version>4.11</junit.version>
@@ -58,6 +58,11 @@
<artifactId>junit</artifactId>
<version>${junit.version}</version>
</dependency>
<dependency>
<groupId>com.squareup.okio</groupId>
<artifactId>okio</artifactId>
<version>${okio.version}</version>
</dependency>
</dependencies>
</dependencyManagement>