Follow-up Comment #2, bug #35410 (project make): Oops, yes, I'm agree.
Another possible (and quite simple to apply it right now) optimization is to use something like: pat->length = len/2 + strlen(pat->str + len/2) It seems to be safe as far as the string can't become shorter than a half of the original one (the worst case is like '\%' -> '%'). The patch for the latest version from CVS is attached below. It also changes the way of checking whether the called function is "filter" or "filter-out". (file #25259) _______________________________________________________ Additional Item Attachment: File name: func_filter2.patch Size:0 KB _______________________________________________________ Reply to this item at: <http://savannah.gnu.org/bugs/?35410> _______________________________________________ Message sent via/by Savannah http://savannah.gnu.org/ _______________________________________________ Bug-make mailing list Bug-make@gnu.org https://lists.gnu.org/mailman/listinfo/bug-make