GNU bug report logs - #24100
[PATCH 0/4] Some regex dead-code elimination

Previous Next

Package: emacs;

Reported by: Michal Nazarewicz <mina86 <at> mina86.com>

Date: Thu, 28 Jul 2016 17:01:02 UTC

Severity: wishlist

Tags: patch

Done: Michal Nazarewicz <mina86 <at> mina86.com>

Bug is archived. No further changes may be made.

Full log


Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Michal Nazarewicz <mina86 <at> mina86.com>
To: bug-gnu-emacs <at> gnu.org
Subject: [PATCH 0/4] Some regex dead-code elimination
Date: Thu, 28 Jul 2016 19:00:28 +0200
The first patch is just a minor cleanup, the rests bank on the
observation that Emacs only ever uses its own regex syntax.

Overall, this shrinks Emacs by over 60 kB and expecetdly also speeds
it up.

This patchest is put on top of my previous on from bug#24009.  The
whole branch can be seen at https://github.com/mina86/emacs/.

Unless there are objections, I’ve submit it in a week or so.

Michal Nazarewicz (4):
  Remove dead opcodes in regex bytecode
  Get rid of re_set_syntax
  Get rid of re_set_whitespace_regexp
  Hardcode regex syntax to remove dead code handling different syntax

 src/regex.c  | 101 ++++++++++++++++++++++++++++++++++-------------------------
 src/regex.h  |  20 ++++++++++--
 src/search.c |  17 +++-------
 3 files changed, 80 insertions(+), 58 deletions(-)

-- 
2.8.0.rc3.226.g39d4020





This bug report was last modified 8 years and 288 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.