bug-make
[Top][All Lists]
Advanced

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

RE: filter-out, very slow?


From: Daniel Shane
Subject: RE: filter-out, very slow?
Date: Fri, 30 Jan 2004 12:55:50 -0500

I see,

In that case, could we add a new text function that would work like
filter-out, but simply faster? We could call it comm. The reason is quite
simple, when strings become overwhelming, it is impossible to pass them to a
shell script because of command line size limit. Therefore, they are not
easy alternative to get the functionnality of filter-out at a reasonable
speed.

Daniel Shane

-----Original Message-----
From: Paul Smith [mailto:address@hidden Behalf Of Paul D.
Smith
Sent: Friday, January 30, 2004 12:53 PM
To: address@hidden
Cc: address@hidden
Subject: Re: filter-out, very slow?


%% "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]