[Scilab-users] scilab memory usage
Clément David
clement.david at scilab-enterprises.com
Mon Jan 6 12:03:22 CET 2014
Hello,
Of course no, in Scilab the default type is "double". You can construct
any other datatype using type-functions [1].
[1]: http://help.scilab.org/docs/5.4.1/en_US/int8.html
Le dimanche 05 janvier 2014 à 17:07 +0000, Stephan Schreckenbach a
écrit :
> Does scilab itself declare the variables to the type of lowest
> possible
> memory consumption? Or do I have to do that? How?
>
>
>
> Samuel Gougeon <sgougeon at free.fr> schrieb am 15:09 Sonntag, 5.Januar
> 2014:
>
> Le 04/01/2014 23:31, Stephan Schreckenbach a écrit :
>
> >
> > .../...
> > Since scilab processes all data as variant, how much memory is
> > required for each constant or variable, being string, integer or
> > double?
> >
> > .../...
> >
> roughly:
> string : 4 bytes per character (UTF-8 encoded)
> integer: (u)int8 : 1 byte (u)int16 : 2 bytes (u)int32: 4 bytes
> double: 8 bytes
> boolean: 4 bytes
> + few other bytes to encode the format ( vector, matrix,
> hypermatrix...)
--
Clément
More information about the users
mailing list