Hello all,
As we know, robots (and computers) have low memory, therefore I wanted to find out how much RAM.
Everything below is empirically tested on 1MB (=1024KB) robot with OpenOS installed, the following script (http://pastebin.com/Fn34HXLr)
I found out, that
10 is a magic number. If you use os.sleep(0) once it doesn't guarantee that garbage collector will run, and even for 9 times garbage collector may not run
OpenOS uses approximatelly 210KB of RAM (+/- 20KB)
Booleans, numbers and strings uses 9 bytes of RAM. At some size numbers become floats instead of doubles, but I cannot find