Slightly more efficient compilation of 'new'

db4
Slava Pestov 2009-04-22 21:26:22 -05:00
parent 8432c30ed1
commit d3cffcbee2
1 changed files with 3 additions and 5 deletions

View File

@ -113,11 +113,9 @@ M\ tuple-class boa t "no-compile" set-word-prop
\ new [
dup tuple-class? [
dup inlined-dependency depends-on
[
[ all-slots [ initial>> literalize , ] each ]
[ literalize , ] bi
\ boa ,
] [ ] make
[ all-slots [ initial>> literalize ] map ]
[ tuple-layout '[ _ <tuple-boa> ] ]
bi append
] [ drop f ] if
] 1 define-transform