[Scilab-Dev] 1 boolean = 4 bytes => 1 byte ?
Samuel Gougeon
sgougeon at free.fr
Mon Apr 23 18:25:43 CEST 2018
Hello,
As reported @ http://bugzilla.scilab.org/12789 in 2013 (so 2 years
before the first 6.0 alpha release), in Scilab 5 each boolean takes 4
bytes to be stored.
It is 4 times more than an easy storage and handling with 1 byte per
boolean, and 32 times more than a memory optimum with 8 booleans per byte.
Since [names, memory]=who(..) is broken in Scilab 6, i did not check
that this poor memory usage is still actual in 6.0.
Assuming that it is the case, then, what would imply to change the
storage -- say with 1 byte per boolean --
* in terms of implementation : would it be heavy to implement?
* in terms of back-compatibility : would it have a big impact?
Regards
Samuel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/dev/attachments/20180423/9f9667c6/attachment.htm>
More information about the dev
mailing list