There have already taken place some nice memory optimizations, but the heap size is currently a little small.
Pycom users started complaining regularly on the forum about memory shortage until the heap size was raised to 96k. I think we should try to get to the same 96k...