Wheee! Managed to reduce the memory usage of syntax highlighting library Rouge in a simple case from 11MB to 2MB!

Michael Camilleri @pyrmont