Skip to content

Commit

Permalink
[CONJ-628] small optimization to read metadata faster
Browse files Browse the repository at this point in the history
(cherry picked from commit d92ae73)
  • Loading branch information
rusher committed Feb 4, 2019
1 parent 0991ce7 commit 7afc70b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ private String getString(int idx) {
for (int i = 0; i < idx; i++) {
buffer.skipLengthEncodedBytes();
}
return new String(buffer.getLengthEncodedBytes(), Buffer.UTF_8);
return buffer.readStringLengthEncoded(Buffer.UTF_8);
}

public String getDatabase() {
Expand Down

0 comments on commit 7afc70b

Please sign in to comment.