Commit b87e1f1
Automated g4 rollback of changelist 162220754.
*** Reason for rollback ***
app-engine has a buggy implementation of FileInputStream.available() which is throwing IOException
*** Original change description ***
Implement ByteSource.asCharSource(charset).read() using the decoding string constructor instead of streaming the contents into a StringBuilder.
this allows us to avoid a number of copies that are currently happening for each character (1. into a temporary CharBuffer, 2. into a StringBuilder, 3 into the String char[]) and replace it with simply whatever is required by ByteSource.read() and the String(byte[], charset) constructor. For certain ByteSource implementations (like FileByteSource) Byte...
***
-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=1622452861 parent 44b9081 commit b87e1f1
4 files changed
Lines changed: 0 additions & 298 deletions
File tree
- android
- guava-tests/benchmark/com/google/common/io
- guava/src/com/google/common/io
- guava-tests/benchmark/com/google/common/io
- guava/src/com/google/common/io
Lines changed: 0 additions & 137 deletions
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
455 | 455 | | |
456 | 456 | | |
457 | 457 | | |
458 | | - | |
459 | | - | |
460 | | - | |
461 | | - | |
462 | | - | |
463 | | - | |
464 | | - | |
465 | | - | |
466 | | - | |
467 | | - | |
468 | | - | |
469 | | - | |
470 | 458 | | |
471 | 459 | | |
472 | 460 | | |
| |||
Lines changed: 0 additions & 137 deletions
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
455 | 455 | | |
456 | 456 | | |
457 | 457 | | |
458 | | - | |
459 | | - | |
460 | | - | |
461 | | - | |
462 | | - | |
463 | | - | |
464 | | - | |
465 | | - | |
466 | | - | |
467 | | - | |
468 | | - | |
469 | | - | |
470 | 458 | | |
471 | 459 | | |
472 | 460 | | |
| |||
0 commit comments