[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Chicken-janitors] #228: avoid recompilation of regular expressions, a
From: |
Chicken Trac |
Subject: |
[Chicken-janitors] #228: avoid recompilation of regular expressions, at least for simple cases |
Date: |
Tue, 04 May 2010 07:37:25 -0000 |
#228: avoid recompilation of regular expressions, at least for simple cases
--------------------------------------+-------------------------------------
Reporter: felix | Owner: felix
Type: enhancement | Status: new
Priority: not urgent at all | Milestone:
Component: compiler | Version:
Keywords: regex compilation syntax |
--------------------------------------+-------------------------------------
Compiler syntax for `string-(search|match)[-positions]` with literal or
quoted first argument could transform into code that uses a "latch":
{{{
(string-XXX LIT ...)
~>
(let* ((T1 '#(#f))
(T2 (##sys#slot T1 0)))
(string-XXX
(or T2
(let ((T3 (regexp LIT)))
(##sys#setslot T1 0 T3)
T3))
...))
}}}
--
Ticket URL: <http://www.irp.oist.jp/trac/chicken/ticket/228>
Chicken Scheme <http://www.call-with-current-continuation.org/>
Chicken Scheme is a compiler for the Scheme programming language.
- [Chicken-janitors] #228: avoid recompilation of regular expressions, at least for simple cases,
Chicken Trac <=