Ticket #15 (new task)

Opened 2 years ago

Last modified 2 years ago

Undo optimizations in the RegExp compiler

Reported by: lth Assigned to: lth
Type: task Priority: major
Milestone: M3 Component: RefImpl
Version: 4 Keywords: RegExp, readability
Cc:

Description

Graydon did some optimization of the regexp compiler, replacing phrases like "if (eat('c')) ..." with a switch and replacing many string literals with charcodes throughout. This speeds up the compiler a lot but significantly reduces the expository value of the code, so the fix will need to be undone before the TR is released.

Attachments

rediffs (27.9 kB) - added by lth 2 years ago.
Graydon's changes

Change History

Changed 2 years ago by lth

The changes came into RegExpCompiler?.es in the following two revisions, I will attach a diff when that feature works in Trac...

7088cb4c44ba3bb518469b84a708a10dfe4dfd6f ea2fb5cd1ba12ce935736823136f5e03b80e4131

Changed 2 years ago by lth

  • owner changed from lth to lhansen@adobe.com

Changed 2 years ago by lth

Graydon's changes

Changed 2 years ago by lth

  • owner changed from lhansen@adobe.com to lth
Note: See TracTickets for help on using tickets.