# Memory optimization option This article explains how to optimize memory utilization when editing large Word documents using GroupDocs.Editor for Java API. By default [**GroupDocs.Editor**](https://products.groupdocs.com/editor/java) tries to perform computations and complete the task as fast as possible, and if this challenge requires a lot of memory to be used, GroupDocs.Editor does it. However, in some very specific cases, when processing document is very huge, and GroupDocs.Editor works in 32-bit application, which is limited to 2GiB per process, or user machine has very limited amount of free memory, the SystemOutOfMemoryException may occur. In order to solve such problem the [WordProcessingSaveOptions](https://reference.groupdocs.com/editor/java/com.groupdocs.editor.options/wordprocessingsaveoptions) class contains the [`OptimizeMemoryUsage`](https://reference.groupdocs.com/editor/java/com.groupdocs.editor.options/wordprocessingsaveoptions/#getOptimizeMemoryUsage--) property: ```java public boolean getOptimizeMemoryUsage() public void getOptimizeMemoryUsage(boolean) ``` By default it has a "*false*" value, which means that the memory optimization is disabled for the sake of the best possible performance. By setting a "*true*" user can enable another document generating mechanism, which can significantly decrease memory consumption while generating large documents at the cost of slower generation time while performing the [`Editor.save()](https://reference.groupdocs.com/editor/java/com.groupdocs.editor/editor#save-com.groupdocs.editor.EditableDocument-java.io.OutputStream-com.groupdocs.editor.options.ISaveOptions-) method.