unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Ted Zlatanov <tzz@lifelogs.com>
To: help-gnu-emacs@gnu.org
Subject: Re: md5 checksum of a img file, or get the value of 100th byte
Date: Mon, 09 Jun 2008 10:04:45 -0500	[thread overview]
Message-ID: <863anmwsxe.fsf@lifelogs.com> (raw)
In-Reply-To: mailman.12833.1212820449.18990.help-gnu-emacs@gnu.org

On Sat, 07 Jun 2008 09:34:01 +0300 Eli Zaretskii <eliz@gnu.org> wrote: 

>> From: Ted Zlatanov <tzz@lifelogs.com>
>> Date: Fri, 06 Jun 2008 17:45:43 -0500
>> 
EZ> For editing, I submit that there should be no reason to edit such
EZ> large files.
>> 
>> Maybe 10 years ago that was true.  Today I see huge (over 300 MB) files
>> very often (as a programmer and as a sysadmin).  Logs of all sorts, for
>> instance, and database dumps.

EZ> Why would you want to _edit_ (as opposed to _view_) these files?

As an example, at a previous job all server log time stamps were in Unix
epoch offsets.  That was hard to interpret, so I often had to filter the
whole file to rewrite those time stamps to UTC ISO format.  I then
needed to do further modifications, e.g. look at only fields 3-9 and
12.  I wrote many custom tools to make this easier, but in Emacs it
would have been trivial.  Sure, I can write a custom mode or pipe the
file through a filter, but I *knew* I'd never need the original time
stamps, so saving the ISO dates the first time was productive, and
editing on the fly in general would have made my life easier.

As another example, I often have to peek inside a large database dump or
import CSV/TSV/etc. file and understand what went wrong.  Once
understood, it's more efficient to fix and save inside Emacs than split,
modify, recombine outside Emacs.

Expected memory sizes today are 2-8 GB.  Disk speed is really the major
issue with editing a 300MB file, and that's improving swiftly lately.  I
think it's feasible and not too painful to allow this kind of editing.
How hard would it be to customize the Emacs defaults for that to happen?

EZ> Please note that I agreed that viewing such large files chunk-wise
EZ> would be useful, indeed.

Do you or anyone know of an existing less-like mode for Emacs?  If not,
I'll put it on my TODO list.

Thanks
Ted


  parent reply	other threads:[~2008-06-09 15:04 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-06-05 11:29 md5 checksum of a img file, or get the value of 100th byte Xah
2008-06-05 19:17 ` Eli Zaretskii
     [not found] ` <mailman.12717.1212693595.18990.help-gnu-emacs@gnu.org>
2008-06-06 14:44   ` Ted Zlatanov
2008-06-06 16:33     ` Eli Zaretskii
     [not found]     ` <mailman.12786.1212770026.18990.help-gnu-emacs@gnu.org>
2008-06-06 18:55       ` Ted Zlatanov
2008-06-06 20:07         ` Eli Zaretskii
     [not found]         ` <mailman.12802.1212782926.18990.help-gnu-emacs@gnu.org>
2008-06-06 22:45           ` Ted Zlatanov
2008-06-07  6:34             ` Eli Zaretskii
     [not found]             ` <mailman.12833.1212820449.18990.help-gnu-emacs@gnu.org>
2008-06-09 15:04               ` Ted Zlatanov [this message]
2008-06-09 15:58                 ` Eli Zaretskii
2008-06-07  0:03           ` Tim X
2008-06-09 15:15             ` Ted Zlatanov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=863anmwsxe.fsf@lifelogs.com \
    --to=tzz@lifelogs.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).