emacs-devel
[Top][All Lists]
Advanced

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

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


From: Bruno Haible
Subject: Re: convert regex.c, strftime.c mktime.c to standard C
Date: Sat, 20 Nov 2010 12:00:06 +0100
User-agent: KMail/1.9.9

Richard Stallman asked:
> regexp.c might be harder.  Would Emacs work with the current
> regex.c from gnulib, or does it lack some features added for Emacs?

Emacs appears to rely on an efficient re_search_2 and re_match_2 function.
Whereas the implementation of re_search_2 and re_match_2 in glibc and gnulib
concatenates the two given strings in a single malloc'ed area, performs the
search, and then frees the malloc'ed area. Depending on the typical sizes of
strings that are passed to re_search_2 and re_match_2, this may or may not
be a performance killer.

Bruno



reply via email to

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