missing REPLACE transforms for strings
Bug #756926 reported by
Nikodemus Siivola
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
SBCL |
Fix Released
|
Low
|
Unassigned |
Bug Description
FOO2 is 20 times faster than either FOO1 or FOO2. I think it would be reasonable for even a plain STRING declaration be enough to bring a specialized -- if not inlined -- version in play.
(defun foo0 (s1 s2)
(declare (simple-string s1 s2))
(replace s1 s2))
(defun foo1 (s1 s2)
(declare (type (and simple-string (not simple-
(replace s1 s2))
(defun foo2 (s1 s2)
(declare (type (simple-array character (*)) s1 s2))
(replace s1 s2))
To post a comment you must log in.
hi, I'd like to take on this bug. could you give me some pointers on how to get started?