bug-make
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: filter-out, very slow?


From: Paul D. Smith
Subject: Re: filter-out, very slow?
Date: Fri, 30 Jan 2004 12:52:30 -0500

%% "Daniel Shane" <address@hidden> writes:

  ds> I'm using the filter out function on some very big strings and
  ds> found out that the filter-out is much slower than comm (shell
  ds> command). Would it be hard to change the filter-out function so
  ds> that it accepts already sorted inputs?

  ds> For users, that means that instead of

  ds> $(filter-out $(str1), $(str2))

  ds> it woudl become

  ds> $(filter-out ($sort $(str1)), ($sort $(str2)))

This is not backward-compatible: many people rely on filter-out
returning words in the relative order they had in $(str2).

-- 
-------------------------------------------------------------------------------
 Paul D. Smith <address@hidden>          Find some GNU make tips at:
 http://www.gnu.org                      http://make.paulandlesley.org
 "Please remain calm...I may be mad, but I am a professional." --Mad Scientist




reply via email to

[Prev in Thread] Current Thread [Next in Thread]