Module Name: src Committed By: sjg Date: Tue Apr 24 20:26:58 UTC 2012
Modified Files: src/usr.bin/make: buf.c buf.h var.c Log Message: Var* are generally very liberal with memory, with the expectation that none of it persists for long. This isn't always true - for example a long running .for loop. Buf_DestroyCompact() is used by Var_Subst(), rather than Buf_Destroy(). If it looks like we can save BUF_COMPACT_LIMIT (128) or more bytes, call realloc. This can reduce memory consumption by about 20% Setting BUF_COMPACT_LIMIT to 0 dissables this. To generate a diff of this commit: cvs rdiff -u -r1.24 -r1.25 src/usr.bin/make/buf.c cvs rdiff -u -r1.16 -r1.17 src/usr.bin/make/buf.h cvs rdiff -u -r1.167 -r1.168 src/usr.bin/make/var.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.