Page 1 of 1

overhead of creating byte arrays

Posted: Sat Oct 08, 2016 11:45 pm
by potku2016
I need to create about 300 byte arrays ( new byte {... } ) in my applet. But somebody told me that I should not create that much arrays since there will be overhead of about 4 bytes, associated with per array. Can anybody help me confirm this? thanks

Re: overhead of creating byte arrays

Posted: Sun Oct 09, 2016 3:59 am
by popmun09
There indeed would be an overhead for the array itself.

And this overhead information may be only known by the javacard OS manufacturer, I suspect.

Re: overhead of creating byte arrays

Posted: Mon Oct 10, 2016 3:54 am
by corleoner
I have seen some platforms that have a 7 bytes overhead for objects.

It's not specified. It really depends on the platform.