[Top][All Lists]

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

Re: convert regex.c, strftime.c mktime.c to standard C

From: Lars Magne Ingebrigtsen
Subject: Re: convert regex.c, strftime.c mktime.c to standard C
Date: Sun, 21 Nov 2010 18:25:43 +0100
User-agent: Gnus/5.110011 (No Gnus v0.11) Emacs/24.0.50 (gnu/linux)

Richard Stallman <address@hidden> writes:

> That would be totally useless for Emacs.  Copying the whole Emacs
> buffer in that way just once could cause a delay big enough for
> the user to see.

If typical code snippets like

(while (re-search-forward "..." nil t) ...)

copies the entire buffer for each re-search-forward call, then it's not
something that Emacs could use, I think.

But I wonder what the performance impact would be if functions like
`re-search-forward' just moved the gap somewhere (to before point, for
instance?).  Then the regex functions could just work directly on the
buffer, but without knowledge of the gap.  

(domestic pets only, the antidote for overdose, milk.)
  address@hidden * Lars Magne Ingebrigtsen

reply via email to

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