No, breaking it into two arrays will not help you.
I haven't done this myself, but I THINK what you'll want to do is use
a BufferedWriter  or something similar.  In any case, you'll HAVE to
buffer your data and send it in chunks.  HTTP supports this quite
well.  Take a look at some BufferedWriter tutorials, or perhaps
someone can suggest a better approach.

On Thu, Sep 9, 2010 at 9:41 PM, TheSeeker <[email protected]> wrote:
> yes, i had a mismach, thanks. But i still have the same problem with
> time(1 min ) and GC. Create 2 or more array instead of the big one
> will solve the problem with time?
>
> On Sep 8, 5:47 pm, Frank Weiss <[email protected]> wrote:
>> Looks bad, very bad.
>>
>> First, I have no idea why you're allocating 1.8 MB (remember that Java, and
>> I suppsoe Dalvik as well, takes 16 bits per char). How come so much? Second,
>> of course writing a byte (or is it a char, there's a mismatch there) is
>> going to be slower than writing at least a few thousand at a time.
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en



-- 
~ Jeremiah:9:23-24
Android 2D MMORPG: http://developingthedream.blogspot.com/,
http://diastrofunk.com,
http://www.youtube.com/user/revoltingx

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to