nltk/nltk — pull request #313 by kmike (2012-11-29 22:49:49+00:00)
Title: Memory improvements

* _unload hack;
* wordnet.Lemma and wordnet.Synset got `__slots__`

This should reduce average test memory usage for 100-200M and peak test memory usage for about 300-400M.

It should also improve general wordnet memory usage. But this is a breaking change because wordnet.Lemma and wordnet.Synset become non-monkey-patchable with `__slots__` - it is no longer possible to assign custom attributes to Lemma and Synset. I think the resulting memory gains worth it.