Skip to content
Snippets Groups Projects
  • Eelco Dolstra's avatar
    b83801f8
    Optimize small lists · b83801f8
    Eelco Dolstra authored
    The value pointers of lists with 1 or 2 elements are now stored in the
    list value itself. In particular, this makes the "concatMap (x: if
    cond then [(f x)] else [])" idiom cheaper.
    b83801f8
    History
    Optimize small lists
    Eelco Dolstra authored
    The value pointers of lists with 1 or 2 elements are now stored in the
    list value itself. In particular, this makes the "concatMap (x: if
    cond then [(f x)] else [])" idiom cheaper.