[android-developers] Re: Insanely slow read() from HttpsURLConnection...

2009-03-28 Thread Marc
Thanks for the replies. Those were some of the next steps I was considering, but I very much appreciate the time you guys took to respond. I was just astounded by the overhead involved in reading byte by byte! BTW, this was with a fast connection (2mbps+). Best, Marc On Mar 28, 3:42 pm, Dan

[android-developers] Re: Insanely slow read() from HttpsURLConnection...

2009-03-28 Thread Dan Bornstein
On Sat, Mar 28, 2009 at 3:16 PM, Marc wrote: > So I have the following code... > >StringBuilder sb = new StringBuilder(4096); > >while (true) { >int i = in.read(); >if (i == 0) >break; >

[android-developers] Re: Insanely slow read() from HttpsURLConnection...

2009-03-28 Thread Mark Murphy
> So I have the following code... > > StringBuilder sb = new StringBuilder(4096); > > while (true) { > int i = in.read(); > if (i == 0) > break; > else if (i == -1) >