Skip to content
  • Vladislav Zavialov's avatar
    d82d3823
    Introduce Strict.Maybe, Strict.Pair (#19156) · d82d3823
    Vladislav Zavialov authored and Marge Bot's avatar Marge Bot committed
    This patch fixes a space leak related to the use of
    Maybe in RealSrcSpan by introducing a strict variant
    of Maybe.
    
    In addition to that, it also introduces a strict pair
    and uses the newly introduced strict data types in a few
    other places (e.g. the lexer/parser state) to reduce
    allocations.
    
    Includes a regression test.
    d82d3823
    Introduce Strict.Maybe, Strict.Pair (#19156)
    Vladislav Zavialov authored and Marge Bot's avatar Marge Bot committed
    This patch fixes a space leak related to the use of
    Maybe in RealSrcSpan by introducing a strict variant
    of Maybe.
    
    In addition to that, it also introduces a strict pair
    and uses the newly introduced strict data types in a few
    other places (e.g. the lexer/parser state) to reduce
    allocations.
    
    Includes a regression test.
Loading