DOC: how to save memory