memory - Android base64.decode() into existing byte array -


On Android, I'm using the Base64.decode () method. It has many variations, but decodes all of the given base 64 inputs into a newly created byte array.

Since I need to call it with too much input, it allocates a lot of memory and often causes GCs.

So I'm thinking that the method, or alternate techniques, is a way of passing the existing byte array, so that it keeps the result inside the current byte array and avoiding memory allocation for a new one .

>


Comments

Popular posts from this blog

java - Can't add JTree to JPanel of a JInternalFrame -

javascript - data.match(var) not working it seems -

javascript - How can I pause a jQuery .each() loop, while waiting for user input? -