emacs-pretest-bug
[Top][All Lists]
Advanced

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

Re: Slow operations on buffers of tens of megabytes


From: Elias Oltmanns
Subject: Re: Slow operations on buffers of tens of megabytes
Date: Mon, 20 Nov 2006 19:22:08 +0100
User-agent: Gnus/5.110006 (No Gnus v0.6)

Richard Stallman <address@hidden> wrote:
>     Without really knowing anything
>     about emacs 23, I'm just curious to know if something like a generic
>     mechanism to restrict pattern matching for heavily used functions like
>     re-search-forward to some limitted case tables, e.g., the ASCII table,
>     will be provided (if applicable, that is) by emacs.
>
> Why would we why we want such a feature?  It is not needed to deal
> with this problem, or any other problem I can recall.

The original problem was that search-forward couldn't use boyer_moore
when gnus scanned the nnfolder for article-nubers. This was due to the
fact that i was related to its dotless version, i.e. a character from
a row further down (or up?) the unicode table. In src/search.c it
says:

--8<---------------cut here---------------start------------->8---
   This kind of search works if all the characters in BASE_PAT that
   have nontrivial translation are the same aside from the last byte.
   This makes it possible to translate just the last byte of a
   character, and do so after just a simple test of the context.
--8<---------------cut here---------------end--------------->8---

As I said, I don't really know anything about emacs 23, nor do I know
very much about unicode for that matter. I just thought that there
might be more such links between characters of different rows in
future case and translation tables. From the point of view of gnus and
similar packages it might be desirable to temporarily use some
restricted translation table (restricted to only characters of one row
in the terms of the quote above) for internal purposes.

>
> Of course, you can always install your own case table.

Maybe, I'm just a bit confused and this will turn out to be the only
feasible solution in the end.

Regards,

Elias





reply via email to

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