auctex-devel
[Top][All Lists]
Advanced

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

[AUCTeX-devel] Re: [AUCTeX-diffs] Changes to reftex/lisp/reftex-cite.el,


From: David Kastrup
Subject: [AUCTeX-devel] Re: [AUCTeX-diffs] Changes to reftex/lisp/reftex-cite.el, v
Date: Sat, 07 Jun 2008 14:13:19 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux)

A performance issue.

Ralf Angeli <address@hidden> writes:

> CVSROOT:      /sources/auctex
> Module name:  reftex
> Changes by:   Ralf Angeli <angeli>    08/06/07 11:16:58
>
> Index: reftex-cite.el
> ===================================================================
> RCS file: /sources/auctex/reftex/lisp/reftex-cite.el,v
> retrieving revision 1.49
> retrieving revision 1.50
> diff -u -b -r1.49 -r1.50
> --- reftex-cite.el    7 Jun 2008 09:05:32 -0000       1.49
> +++ reftex-cite.el    7 Jun 2008 11:16:57 -0000       1.50
> @@ -1158,21 +1158,15 @@
>      (reftex-kill-temporary-buffers)
>      keys))

> +  (reftex-remove-if (lambda (x) (or (string-match "^[\"{]" x)
> +                                 (string-match "^[0-9]+$" x)))
> +                 ;; get list of values, discard keys

I think it could be better to use a single string-match with
alternatives here: that way the regexp cache gets utilized better.


-- 
David Kastrup, Kriemhildstr. 15, 44793 Bochum




reply via email to

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