Re: diff says memory exhausted need help with perl
- From: tc314@xxxxxxxxxxx
- Date: Fri, 28 Mar 2008 17:08:43 -0700 (PDT)
On Mar 28, 6:54 pm, lawre...@xxxxxxxxx (Lawrence Statton) wrote:
If you're using Gnu diff (i.e. the diff that comes with most Linuces)
--speed-large-files might help you, without having to jump through a
perl hoop.
--L
Problems:
1) it runs out of memory 8Gig of files with 2GB RAM
2) it assumes a number of lines (3999) because it doesn't know if it
will
find a difference in one line or a million lines.
(2b: this goes against the *nix pipe concept because it then pushes
this
unwieldy block to the next pipe 'cut' rather than gracefully streaming
from pipe to pipe.)
3) The heiristic approach is an imprecise solution to an exact
problem.
It doesn't work perfectly every time.
For most files the simple bash scripts a clean, self-documenting and
fine.
It's natural in perl.
I'm battling syntax and trying to avoid physical RAM issues entirely.
Thanks
.
- Follow-Ups:
- Re: diff says memory exhausted need help with perl
- From: Rob Dixon
- Re: diff says memory exhausted need help with perl
- From: Rob Dixon
- Re: diff says memory exhausted need help with perl
- References:
- diff says memory exhausted need help with perl
- From: tc314
- Re: diff says memory exhausted need help with perl
- From: Lawrence Statton
- diff says memory exhausted need help with perl
- Prev by Date: Re: diff says memory exhausted need help with perl
- Next by Date: Re: how to replace @ inside of { }
- Previous by thread: Re: diff says memory exhausted need help with perl
- Next by thread: Re: diff says memory exhausted need help with perl
- Index(es):
Relevant Pages
|
|