gui: Reduce memory usage
Context
Fixes #59 (closed).
What has changed?
Main Changes
gui
- Reduce max heap size
gui-view-model
- Word suggestions: Avoid creating and resetting pattern matchers for words which obviously don't match pattern.
Suggestions are now significantly faster to load. It is very fluid for English and French notably. Still a bit laggy for huge dictionaries like Italian but it's way better. (Note: Suggestions have been added after ticket #59 (closed) was created but it is relevant to fix the issue via this ticket because suggestions now participate in the performance issue.)
Edited by Antoine Belvire