Change inlining heuristic so that it behaves the same with dip and >r/r>
parent
a264adc74c
commit
1fa819191d
|
@ -85,6 +85,8 @@ DEFER: (flat-length)
|
||||||
|
|
||||||
: word-flat-length ( word -- n )
|
: word-flat-length ( word -- n )
|
||||||
{
|
{
|
||||||
|
! special-case
|
||||||
|
{ [ dup { dip 2dip 3dip } memq? ] [ drop 1 ] }
|
||||||
! not inline
|
! not inline
|
||||||
{ [ dup inline? not ] [ drop 1 ] }
|
{ [ dup inline? not ] [ drop 1 ] }
|
||||||
! recursive and inline
|
! recursive and inline
|
||||||
|
|
Loading…
Reference in New Issue