Module Name: src Committed By: sjg Date: Fri Jun 3 01:21:59 UTC 2016
Modified Files: src/usr.bin/make: main.c make.h meta.c nonints.h var.c Log Message: Add cached_realpath() realpath(3) is expensive, and meta mode at least uses it extensively. We use cached_realpath() to save the result of successful calls to realpath(3) in a private variable context. This improves the worst case performance (eg examining libc with nothing to do) by a factor of 4. Reviewed by: christos To generate a diff of this commit: cvs rdiff -u -r1.244 -r1.245 src/usr.bin/make/main.c cvs rdiff -u -r1.98 -r1.99 src/usr.bin/make/make.h cvs rdiff -u -r1.58 -r1.59 src/usr.bin/make/meta.c cvs rdiff -u -r1.72 -r1.73 src/usr.bin/make/nonints.h cvs rdiff -u -r1.207 -r1.208 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.