Oh! And read the Kelly's comments in <https://blogs.secondlife.com/community/technology/blog/2010/03/05/server-13 8-beta-now-open> https://blogs.secondlife.com/community/technology/blog/2010/03/05/server-138 -beta-now-open : "Right now there is no way to change how much memory a mono script uses, and it is true that at any given point it probably uses less than 64k, by some amount. However, before we enforce script limits, which again is still a ways off, we will enable the ability to set a lower max memory size for mono scripts. If your script really only uses 4k, congrats you can set it to that and it will only count as 4k, and you won't be able to use more until you change it. This will be implemented before we enforce limits."
Sorry about that :(. That empty one obviously wasn't supposed to go out at all :o. A Mono script that fits into 4Kb and accomplishes something useful would be very interesting to see giving how much of a memory hog Mono is: the default "Hello World!" manages to munch up 3.5Kb already (2x 512-bytes for the 2 functions in there and the other 2Kb is the stack I guess). A very simple poseball script I wrote ages ago: Legacy LSL - 2317 bytes in use / 14,067 available Mono - 11,154 bytes in use / 54,382 available Even if you can limit the amount of memory used legacy LSL seems like an uncontested win: with 14Kb left to play with there is still plenty of room to add quite a bit more if need be and it'll all easily fit within that 16Kb. To play it safe the Mono one would have to be limited to something that's very close to that same 16Kb anyway and with the downside that any more code would make it surpass the legacy LSL's memory requirement. With Mono apparently compiling every/most functions into multiples of 512-bytes blocks it always seemed very wasteful of memory since most functions have a good chance of consisting of X bytes of code followed by a (few) hundred bytes worth of "NOP" padding. Multiply that by amount of functions (or event handlers) inside of a non-trivial Mono scripts and you end up with double digit Kbs worth of "wasted" memory. I'd rather see that deficiency in Mono addressed before anything else. Kitty
_______________________________________________ Policies and (un)subscribe information available here: http://wiki.secondlife.com/wiki/OpenSource-Dev Please read the policies before posting to keep unmoderated posting privileges