OSDN Git Service

Remove almost all of the temporary allocations.
authorElliott Hughes <enh@google.com>
Wed, 28 Apr 2010 19:01:21 +0000 (12:01 -0700)
committerElliott Hughes <enh@google.com>
Wed, 28 Apr 2010 19:01:21 +0000 (12:01 -0700)
commit7d292382054ebb2dd813f8ab9daca906f630e935
treeaa53490a87315aa4d34d09dc4c1be5546b1cd754
parent04efbedbeeb50664f393c75c33add2a53c7a3e40
Remove almost all of the temporary allocations.

The main source of garbage when running the tests is now
OutputStream.write(int)'s creation of temporary single-byte byte arrays, but
no performance-conscious caller should be using that. In sensible cases, we
now produce very little garbage.

Change-Id: I13b5c8aef9a48c6aca33b039af2b13d5613a5f05
libcore/luni/src/main/java/org/apache/harmony/luni/internal/net/www/protocol/http/HttpURLConnectionImpl.java