Module Name: src Committed By: rillig Date: Sun Apr 11 22:53:46 UTC 2021
Modified Files: src/usr.bin/make: str.h var.c Log Message: make: improve performance for LazyBuf The previous O(n^2) time complexity for parsing a long string with many variable expressions was not meant to last for long. I had hoped to fix it within a few minutes, but that will take more time. For now, make LazyBuf simpler by using a traditional C string for the expected part instead of a Substring. This avoids a strlen call per Var_Parse. No functional change, only performance. To generate a diff of this commit: cvs rdiff -u -r1.4 -r1.5 src/usr.bin/make/str.h cvs rdiff -u -r1.922 -r1.923 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.