|I'm awared about it, but only have part of the explaination yet:
As far as I remember when I tryed to figure out why so much memory is
consumed, I noticed that:
- the binary code generated in various functions is about 100 KB (might
be a bit bigger now), so we could expect a much smaller overall
- the 'runtime_compile' control consumes very much memory (because it
will get a link to the expression, so prevent it to be freed, and
expressions are rather big objets), so creating an expression encoder
for 'runtime_compile' would save quite a lot of memory.
We would need a more serious check of various objets in the memory (see
what they are usefull for) to discover what's highly suboptimal right
- I don't know what's the exact cost of various modules related datas,
and constants used in functions.