reduce memory usage for dictionary building
authorLaurent Mazet <mazet@softndesign.org>
Sun, 16 Jun 2024 21:51:43 +0000 (23:51 +0200)
committerLaurent Mazet <mazet@softndesign.org>
Sun, 16 Jun 2024 21:51:43 +0000 (23:51 +0200)
dict/makefile

index acdcd87d7d77978ae8d7fa0ae842787e74286f77..2f5f79892e9f6f69f44f47c9406375751366fcc2 100644 (file)
@@ -74,8 +74,9 @@ include $(wildcard ${OBJ_DIR}/src.mk)
        aspell --dict-dir="$$(realpath $<)" -d "$$DICT_NAME" dump master "$$DICT_NAME" | \
        aspell --dict-dir="$$(realpath $<)" -l "$$DICT_NAME" expand | \
        tr -s '[:space:]' '\n' > "$@~" && \
-       LC_ALL=C sort -S28G -u -o "$@~" "$@~" && \
+       LC_ALL=C sort -S2G -u -o "$@~" "$@~" && \
        mv "$@~" "$@"
+#      LC_ALL=C sort -S28G -u -o "$@~" "$@~" && \
 
 $(OBJ_DIR)/no.low:
        make $(OBJ_DIR)/nb.low