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

Re: [FWP] Wanted - Have = Need



Bernie Cosell wrote:
> 
> sort WANT HAVE HAVE | uniq -u
> 
> Still not perl and not all that much fun...

It also means that you're (as much as) tripling
the amount of space on disk needed to solve the
problem.  I.e. if HAVE is 1Mb in size, and WANT is
small, then you use 2Mb more, for sort's temporary
usage. (That's the worst-case scenario.)

The fgrep solution doesn't use any extra storage,
and only holds HAVE in memory.

-- 
John Porter


==== Want to unsubscribe from Fun With Perl?  Well, if you insist...
==== Send email to <fwp-request@technofile.org> with message _body_
====   unsubscribe